fix: sqlite_vec keyword implementation

Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
This commit is contained in:
Varsha Prasad Narsing 2025-05-07 16:05:25 -07:00
parent e2a7022d3c
commit 2060fdba7f
14 changed files with 146 additions and 101 deletions

View file

@ -11601,7 +11601,6 @@
},
"max_chunks": {
"type": "integer",
<<<<<<< HEAD
"default": 5,
"description": "Maximum number of chunks to retrieve."
},
@ -11609,12 +11608,10 @@
"type": "string",
"default": "Result {index}\nContent: {chunk.content}\nMetadata: {metadata}\n",
"description": "Template for formatting each retrieved chunk in the context. Available placeholders: {index} (1-based chunk ordinal), {chunk.content} (chunk content string), {metadata} (chunk metadata dict). Default: \"Result {index}\\nContent: {chunk.content}\\nMetadata: {metadata}\\n\""
=======
"default": 5
},
"mode": {
"type": "string"
>>>>>>> 1a0433d2 (feat (RAG): Implement configurable search mode in RAGQueryConfig)
"type": "string",
"description": "Search mode for retrieval—either \"vector\" or \"keyword\"."
}
},
"additionalProperties": false,

View file

@ -8072,7 +8072,6 @@ components:
max_chunks:
type: integer
default: 5
<<<<<<< HEAD
description: Maximum number of chunks to retrieve.
chunk_template:
type: string
@ -8087,10 +8086,10 @@ components:
placeholders: {index} (1-based chunk ordinal), {chunk.content} (chunk
content string), {metadata} (chunk metadata dict). Default: "Result {index}\nContent:
{chunk.content}\nMetadata: {metadata}\n"
=======
mode:
type: string
>>>>>>> 1a0433d2 (feat (RAG): Implement configurable search mode in RAGQueryConfig)
description: >-
Search mode for retrieval—either "vector" or "keyword".
additionalProperties: false
required:
- query_generator_config

View file

@ -70,7 +70,7 @@ To use sqlite-vec in your Llama Stack project, follow these steps:
The sqlite-vec provider supports both vector-based and keyword-based (full-text) search modes.
When using the RAGTool interface, you can specify the desired search behavior via the search_mode parameter in
When using the RAGTool interface, you can specify the desired search behavior via the `mode` parameter in
`RAGQueryConfig`. For example:
```python