Skip to content

Commit

Permalink
fix literature search, still have issues with UnboundLocalError: loca…
Browse files Browse the repository at this point in the history
…l variable 'function_name' referenced before assignment
  • Loading branch information
Anton Kulaga committed Jun 8, 2024
1 parent 7e46976 commit e9dd9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- pytest
- typer
- pip:
- litellm
- litellm>=1.40.6
- jupyter
- numpydoc
- semanticscholar>=0.8.1
Expand Down
2 changes: 1 addition & 1 deletion just_agents/tools/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ def literature_search(query: str, limit: int = 20):
:param limit: limit number of results
:return: extracts from scientific papers where SOURCE field is the id of the paper
"""
hybrid_search(text=query, limit=limit)
return hybrid_search(text=query, limit=limit)

0 comments on commit e9dd9b1

Please sign in to comment.