Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def get_db():
|
|
29 |
|
30 |
def get_similar_links(query, db, embeddings):
|
31 |
embedding_vector = embeddings.embed_query(query)
|
32 |
-
docs_and_scores = db.similarity_search_by_vector(embedding_vector)
|
33 |
hrefs = []
|
34 |
for docs in docs_and_scores:
|
35 |
html_doc = docs.page_content
|
|
|
29 |
|
30 |
def get_similar_links(query, db, embeddings):
|
31 |
embedding_vector = embeddings.embed_query(query)
|
32 |
+
docs_and_scores = db.similarity_search_by_vector(embedding_vector, k = 10)
|
33 |
hrefs = []
|
34 |
for docs in docs_and_scores:
|
35 |
html_doc = docs.page_content
|