Spaces:
Running
Running
Chandranshu Jain
commited on
Commit
•
6dd4f19
1
Parent(s):
0315eec
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def embedding(chunk,query):
|
|
71 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
72 |
db = Chroma.from_documents(chunk,embeddings)
|
73 |
doc = db.similarity_search(query)
|
74 |
-
print(
|
75 |
chain = get_conversational_chain()
|
76 |
response = chain({"input_documents": doc, "question": query}, return_only_outputs=True)
|
77 |
print(response)
|
|
|
71 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
72 |
db = Chroma.from_documents(chunk,embeddings)
|
73 |
doc = db.similarity_search(query)
|
74 |
+
print(doc)
|
75 |
chain = get_conversational_chain()
|
76 |
response = chain({"input_documents": doc, "question": query}, return_only_outputs=True)
|
77 |
print(response)
|