-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agentic workflows, locally indexed search, and CLI (#309)
* add agentic workflow module and cli * update pyproject.toml and split google into its own import * remove unused import * update default search chain * Update __init__.py * Update search.py * move reqs into pyproject.toml, addressing PR comments * rename search_chain to openai_get_search_query * remove get_llm_name * move table_formatter to helpers.py * Update paperqa/agents/main.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/main.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/main.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/docs.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/types.py Co-authored-by: James Braza <jamesbraza@gmail.com> * rename compute_cost to compute_total_model_token_cost * remove stream_answer * rename to stub_manifest, and use Path for all paths * Update paperqa/llms.py Co-authored-by: James Braza <jamesbraza@gmail.com> * move SKIP_AGENT_TESTS = False * nix _ = assignments * add test comments * types in conftest.py * split libs into llms * link openai chat timeout to query.timeout * Update paperqa/agents/__init__.py Co-authored-by: James Braza <jamesbraza@gmail.com> * logging revamp and renaming * Update tests/test_cli.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update tests/test_cli.py Co-authored-by: James Braza <jamesbraza@gmail.com> * move vertex import to func call, add docstring to SupportsPickle * docstring * remove _ = * remove bool return type from set * update gitignore * add config attribute to baase LLMModel class * replace get_current_settings -> get_settings * replace get_current_settings -> get_settings * PR simplifications * remove all stream_* functions * avoid modifying the root logger * re-organize logger import location * move hashlib into utils * refactor strip_answer into Answer object * label circular imports * ensure absolute paths are used in index name * limit select to be used only when DOI is not present in crossref * Update paperqa/agents/search.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/search.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/search.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/search.py Co-authored-by: James Braza <jamesbraza@gmail.com> * Update paperqa/agents/models.py Co-authored-by: James Braza <jamesbraza@gmail.com> * reconfigure logging to not prevent propagation * remove newlines in the current year * use required fields as a subset * replace . with Path.cwd() --------- Co-authored-by: James Braza <jamesbraza@gmail.com>
- Loading branch information
1 parent
eced4f3
commit 9cd976a
Showing
26 changed files
with
3,777 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.