Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ chdb = Chroma.from_documents(docs, embedding_function, collection_metadata={"hns
|
|
23 |
|
24 |
text = st.text_area("enter text")
|
25 |
if text:
|
26 |
-
docs = chdb.similarity_search_with_score(
|
27 |
docnum = len(docs)
|
28 |
index = 0
|
29 |
ret = ''
|
|
|
23 |
|
24 |
text = st.text_area("enter text")
|
25 |
if text:
|
26 |
+
docs = chdb.similarity_search_with_score(text, k=3)
|
27 |
docnum = len(docs)
|
28 |
index = 0
|
29 |
ret = ''
|