mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
feat: RAG text ingestion(store) api
This commit is contained in:
@@ -137,6 +137,8 @@ def rag_messages(docs, messages, template, k, embedding_function):
|
||||
k=k,
|
||||
embedding_function=embedding_function,
|
||||
)
|
||||
elif doc["type"] == "text":
|
||||
context = doc["content"]
|
||||
else:
|
||||
context = query_doc(
|
||||
collection_name=doc["collection_name"],
|
||||
|
||||
Reference in New Issue
Block a user