Spaces:
Sleeping
Sleeping
Commit
·
f99fa06
1
Parent(s):
2266118
Update app.py
Browse files
app.py
CHANGED
@@ -433,6 +433,7 @@ def remove_incomplete_sentence(text):
|
|
433 |
language_code = 1
|
434 |
query_text = 'What are symptoms of heart attack ?'
|
435 |
query_embedding = embed_query_text(query_text) # Embed the query text
|
|
|
436 |
initial_results = query_embeddings(query_embedding, embeddings_data, n_results=5)
|
437 |
document_ids = [doc_id for doc_id, _ in initial_results]
|
438 |
print(document_ids)
|
|
|
433 |
language_code = 1
|
434 |
query_text = 'What are symptoms of heart attack ?'
|
435 |
query_embedding = embed_query_text(query_text) # Embed the query text
|
436 |
+
embeddings_data = load_embeddings ()
|
437 |
initial_results = query_embeddings(query_embedding, embeddings_data, n_results=5)
|
438 |
document_ids = [doc_id for doc_id, _ in initial_results]
|
439 |
print(document_ids)
|