mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 07:13:53 +00:00
Added the preprocessing chain parameter to the RAG tool insert API.
This commit is contained in:
parent
4c81a72214
commit
6cbc298edb
3 changed files with 13 additions and 2 deletions
|
|
@ -458,9 +458,10 @@ class ToolRuntimeRouter(ToolRuntime):
|
|||
documents: List[RAGDocument],
|
||||
vector_db_id: str,
|
||||
chunk_size_in_tokens: int = 512,
|
||||
preprocessor_chain: Optional[PreprocessorChain] = None,
|
||||
) -> None:
|
||||
return await self.routing_table.get_provider_impl("insert_into_memory").insert(
|
||||
documents, vector_db_id, chunk_size_in_tokens
|
||||
documents, vector_db_id, chunk_size_in_tokens, preprocessor_chain
|
||||
)
|
||||
|
||||
def __init__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue