mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
update prompt template
This commit is contained in:
@ -79,10 +79,11 @@ class ChromaQuery(Blackbox):
|
||||
# load collection
|
||||
collection = client.get_collection(chroma_collection_id, embedding_function=embedding_model)
|
||||
|
||||
print(usr_question)
|
||||
# query it
|
||||
results = collection.query(
|
||||
query_texts=[usr_question],
|
||||
n_results=3,
|
||||
n_results=chroma_n_results,
|
||||
)
|
||||
|
||||
# response = str(results["documents"] + results["metadatas"])
|
||||
|
||||
Reference in New Issue
Block a user