Merge branch 'dev' into debug_print

This commit is contained in:
Timothy Jaeryang Baek 2024-03-24 18:04:03 -05:00 committed by GitHub
commit 371dfc1143
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 4942 additions and 5335 deletions

View file

@ -141,6 +141,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"],