Ingesting and preparing data for processing in Cognee
.add
operation is how you bring content into Cognee. It takes your files, directories, or raw text, normalizes them into plain text, and records them into a dataset that Cognee can later expand into vectors and graphs with Cognify.
.add
completes, your data is ready for the next stage:
Input sources
["some text", "/path/to/file.pdf", "s3://bucket/data.csv"]
Supported formats
.txt, .md, .csv, .json, …
.pdf
.png, .jpg, .gif, .webp, …
.mp3, .wav, .flac, …
.docx, .pptx, .xlsx, …
Datasets
.add
writes into a dataset, Cognify processes per-datasetUsers and ownership
Node sets
node_set=["AI", "FinTech"]