Spaces:
Sleeping
Sleeping
Commit
·
9662e15
1
Parent(s):
21842bc
Update app.py
Browse files
app.py
CHANGED
@@ -434,6 +434,7 @@ 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)
|
|
|
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 |
+
folder_path = 'downloaded_articles/downloaded_articles'
|
438 |
initial_results = query_embeddings(query_embedding, embeddings_data, n_results=5)
|
439 |
document_ids = [doc_id for doc_id, _ in initial_results]
|
440 |
print(document_ids)
|