File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ import pdb
2
+
1
3
import gradio as gr
2
4
import logfire
3
5
from llama_index .agent .openai import OpenAIAgent
@@ -148,7 +150,6 @@ def format_sources(completion) -> str:
148
150
"📝 Here are the sources I used to answer your question:\n {documents}"
149
151
)
150
152
document_template : str = "[🔗 {source}: {title}]({url}), relevance: {score:2.2f}"
151
-
152
153
all_documents = []
153
154
for source in completion .sources :
154
155
for src in source .raw_output :
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def setup_database(db_collection, dict_file_name):
51
51
)
52
52
vector_retriever = VectorIndexRetriever (
53
53
index = index ,
54
- similarity_top_k = 10 ,
54
+ similarity_top_k = 15 ,
55
55
use_async = True ,
56
56
embed_model = OpenAIEmbedding (model = "text-embedding-3-large" , mode = "similarity" ),
57
57
)
You can’t perform that action at this time.
0 commit comments