December 3, 2024
-
New xAI and Inflection AI models: You can now set
Assistant.model
to useXAI
(e.g., modelgrok-beta
) orInflection AI
(e.g., modelinflection_3_pi
) by specifying these providers in your assistant configuration. Specify these providers inassistant.model
,call.squad.members.assistant.model
, orcall.squad.members.assistantOverrides.model
. -
Integrate Existing Trieve Vector Stores in Your Knowledge Base: When you create a knowledge base with
POST /knowledge-base
, you can now specifyvectorStoreProviderId
to use an existing vector store from your Trieve account. -
Create Vector Stores with Uploaded Files: You can first upload files using the
POST /files
endpoint, and then use thefileIds
to specify the IDs of previously uploaded files to create a new Trieve vector store. You can customize how your files are ingested, chunked, then rebalanced to ensure correct knowledge is served by your assistant:
- Split delimiters: Specify
splitDelimiters
to control how files are split before chunking (default is[.!?\n]
). - Splits per chunk: Set
targetSplitsPerChunk
to specify the desired number of splits per chunk when creating a vector store (default is 20 splits per chunk). - Chunk rebalancing: Set
rebalanceChunks
totrue
to evenly distribute remainder splits across chunks when creating a vector store to ensure balanced chunk sizes; for example, 66 splits withtargetSplitsPerChunk
of 20 will result in 3 chunks with 22 splits each.
- Customize Search Heuristics: You can filter or remove search results from your knowledge base:
- Filter by Score threshold: Set
scoreThreshold
to filter out chunks during searches based on their score. For cosine similarity, chunks below the threshold are filtered out; for other distance metrics, chunks above the threshold are filtered. - Remove stop words: Set
removeStopWords
totrue
to remove stop words during searches. The stop words list is specified inserver/src/stop-words.txt
, and queries that are entirely stop words will still be preserved.
- Updated Analytics Endpoint: The
/analytics
endpoint has changed—useGET /analytics
to retrieve analytics data instead ofPOST /analytics
.