Choose a good sample
You don’t need your whole document collection. A representative sample gives reliable results faster and costs less to embed.- Cover every document type your system will search: help articles, PDFs, policies, FAQs, and so on.
- Include documents people actually ask about, not only the easiest ones.
- Keep similar documents together. Near-duplicates (several versions of the same policy, for example) make retrieval harder, which is realistic if your production data has them too.
Upload raw documents
1
Open the Raw Documents tab
It’s selected by default.
2
Choose the chunking settings
Pick a strategy and its settings in the Chunk Configuration panel. The description under the strategy explains what it does. If you’re unsure, keep Recursive with 1,000 characters and 200 overlap. See Chunking for guidance.
3
Select your files
Click Browse files and select one or more files. Truvec extracts the text, splits it into chunks and lists them in Ingested Chunks.
Supported file types
Chunking consistency
The settings of your first upload become the project default, and the form starts from them next time. If you upload a file type that the project already contains with different settings, Truvec asks what to do before uploading:- Use existing settings: re-chunk this upload like the other files of the same type. This is recommended.
- Upload with my settings: keep your settings on purpose.
- Cancel.
Upload pre-chunked data
If your production pipeline already produces chunks, upload them directly so Truvec evaluates exactly what you run in production. Open the Pre-chunked Data tab, click Upload file and choose a file in one of the formats below.Supported formats
Files must be UTF-8 encoded. Every format describes the same fields:
- JSON
- JSON Lines
- CSV
A JSON array of chunk objects:A plain array of strings also works:
chunks.json
["first chunk", "second chunk"].Validation
Truvec checks the whole file before importing anything. If a chunk is invalid, nothing is imported and the error tells you where the problem is (for exampleItem 3, or Line 12 for JSON Lines and CSV). The upload is rejected when:
- the file isn’t
.json,.jsonlor.csv, or isn’t UTF-8 text - a
.jsonfile isn’t a JSON array (use.jsonlfor one chunk per line) - a chunk has no
text, or itstextis empty - an
idis repeated - a CSV file has no
textcolumn, or a row has more values than the header