mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: apply LLM to optimize citations. (#5935)
### What problem does this PR solve? #5905 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -27,7 +27,8 @@ class Tavily:
|
||||
try:
|
||||
response = self.tavily_client.search(
|
||||
query=query,
|
||||
search_depth="advanced"
|
||||
search_depth="advanced",
|
||||
max_results=6
|
||||
)
|
||||
return [{"url": res["url"], "title": res["title"], "content": res["content"], "score": res["score"]} for res in response["results"]]
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user