Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,7 +110,7 @@ def embedding(chunk,query):
|
|
| 110 |
doc = db.similarity_search(query)
|
| 111 |
print(doc)
|
| 112 |
#Retrieve and generate using the relevant snippets of the blog.
|
| 113 |
-
retriever =
|
| 114 |
chain = get_conversational_chain(retriever)
|
| 115 |
response = chain.invoke(query)
|
| 116 |
print(response)
|
|
|
|
| 110 |
doc = db.similarity_search(query)
|
| 111 |
print(doc)
|
| 112 |
#Retrieve and generate using the relevant snippets of the blog.
|
| 113 |
+
retriever = db.as_retriever()
|
| 114 |
chain = get_conversational_chain(retriever)
|
| 115 |
response = chain.invoke(query)
|
| 116 |
print(response)
|