Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def get_conversational_chain():
|
|
64 |
|
65 |
def user_call(query):
|
66 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
67 |
-
|
68 |
db3 = Chroma(persist_directory="./chroma_db", embedding_function=embeddings)
|
69 |
docs = db3.similarity_search(query)
|
70 |
chain = get_conversational_chain()
|
|
|
64 |
|
65 |
def user_call(query):
|
66 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
67 |
+
Chroma = chromadb.HttpClient(host='127.0.0.1', port=8000, settings=Settings(allow_reset=True, anonymized_telemetry=False))
|
68 |
db3 = Chroma(persist_directory="./chroma_db", embedding_function=embeddings)
|
69 |
docs = db3.similarity_search(query)
|
70 |
chain = get_conversational_chain()
|