Skip to content

Agentic workflows, locally indexed search, and CLI #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 61 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4002a60
add agentic workflow module and cli
mskarlin Aug 26, 2024
f1c49e7
update pyproject.toml and split google into its own import
mskarlin Aug 26, 2024
4ee7b55
remove unused import
mskarlin Aug 27, 2024
555054c
update default search chain
mskarlin Aug 27, 2024
289dee5
Update __init__.py
mskarlin Aug 27, 2024
4bc1c9a
Update search.py
mskarlin Aug 27, 2024
2b717cc
move reqs into pyproject.toml, addressing PR comments
mskarlin Aug 27, 2024
2f84fea
Merge branch 'agentic-workflows' of github.com:whitead/paper-qa into …
mskarlin Aug 27, 2024
0eccdd7
rename search_chain to openai_get_search_query
mskarlin Aug 27, 2024
e0674d2
remove get_llm_name
mskarlin Aug 27, 2024
90fc054
move table_formatter to helpers.py
mskarlin Aug 27, 2024
bdf6e75
Update paperqa/agents/main.py
mskarlin Aug 27, 2024
6dd7633
Update paperqa/agents/main.py
mskarlin Aug 27, 2024
6e2012a
Update paperqa/agents/main.py
mskarlin Aug 27, 2024
8d152f6
Update paperqa/agents/docs.py
mskarlin Aug 27, 2024
4284d41
Update paperqa/types.py
mskarlin Aug 27, 2024
76932c2
Merge branch 'agentic-workflows' of github.com:whitead/paper-qa into …
mskarlin Aug 27, 2024
b855a67
rename compute_cost to compute_total_model_token_cost
mskarlin Aug 27, 2024
1aa7c27
remove stream_answer
mskarlin Aug 27, 2024
b76c13f
rename to stub_manifest, and use Path for all paths
mskarlin Aug 27, 2024
e5639d1
Update paperqa/llms.py
mskarlin Aug 27, 2024
295de74
move SKIP_AGENT_TESTS = False
mskarlin Aug 27, 2024
2d852cc
Merge branch 'agentic-workflows' of github.com:whitead/paper-qa into …
mskarlin Aug 27, 2024
57aee2f
nix _ = assignments
mskarlin Aug 27, 2024
5c140bc
add test comments
mskarlin Aug 27, 2024
4aacfb3
types in conftest.py
mskarlin Aug 27, 2024
c46c194
split libs into llms
mskarlin Aug 27, 2024
afd4907
link openai chat timeout to query.timeout
mskarlin Aug 27, 2024
b013dc8
Update paperqa/agents/__init__.py
mskarlin Aug 27, 2024
d18da4e
logging revamp and renaming
mskarlin Aug 28, 2024
09af9d8
Merge branch 'agentic-workflows' of github.com:whitead/paper-qa into …
mskarlin Aug 28, 2024
ee5b34b
Update tests/test_cli.py
mskarlin Aug 28, 2024
a9f488d
Update tests/test_cli.py
mskarlin Aug 28, 2024
a0ad811
move vertex import to func call, add docstring to SupportsPickle
mskarlin Aug 28, 2024
6c004fc
docstring
mskarlin Aug 28, 2024
48214f5
remove _ =
mskarlin Aug 28, 2024
fd9224d
remove bool return type from set
mskarlin Aug 28, 2024
69879d9
update gitignore
mskarlin Aug 28, 2024
7f462db
Merge branch 'agentic-workflows' of github.com:whitead/paper-qa into …
mskarlin Aug 28, 2024
23ca7a8
add config attribute to baase LLMModel class
mskarlin Aug 28, 2024
1a4672b
replace get_current_settings -> get_settings
mskarlin Aug 28, 2024
dd156e5
replace get_current_settings -> get_settings
mskarlin Aug 28, 2024
85e6f29
PR simplifications
mskarlin Aug 28, 2024
443bbce
remove all stream_* functions
mskarlin Aug 28, 2024
876943d
avoid modifying the root logger
mskarlin Aug 28, 2024
3e1ea5d
re-organize logger import location
mskarlin Aug 28, 2024
8af9871
move hashlib into utils
mskarlin Aug 28, 2024
3ff2628
refactor strip_answer into Answer object
mskarlin Aug 28, 2024
bbe767e
label circular imports
mskarlin Aug 28, 2024
ec109ef
ensure absolute paths are used in index name
mskarlin Aug 28, 2024
48c637a
limit select to be used only when DOI is not present in crossref
mskarlin Aug 28, 2024
3580fee
Update paperqa/agents/search.py
mskarlin Aug 29, 2024
ddd9abc
Update paperqa/agents/search.py
mskarlin Aug 29, 2024
50d1386
Update paperqa/agents/search.py
mskarlin Aug 29, 2024
73e126e
Update paperqa/agents/search.py
mskarlin Aug 29, 2024
2798206
Update paperqa/agents/models.py
mskarlin Aug 29, 2024
2e7b31d
reconfigure logging to not prevent propagation
mskarlin Aug 29, 2024
4a7c6bd
remove newlines in the current year
mskarlin Aug 29, 2024
d3f38bd
use required fields as a subset
mskarlin Aug 29, 2024
34394a1
replace . with Path.cwd()
mskarlin Aug 29, 2024
8c68f8c
Merge branch 'agentic-workflows' of github.com:whitead/paper-qa into …
mskarlin Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
python-version: 3.11
cache: pip
- run: pip install .[dev]
- run: pip install .[agents,google,dev,llms]
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: pip install .[dev]
- run: pip install .[agents,google,dev,llms]
- name: Check pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
- name: Run Test
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,5 @@ env
# Matching pyproject.toml
paperqa/version.py
tests/example*
tests/test_index/*
.DS_Store
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -41,6 +41,7 @@ repos:
- pydantic~=2.0 # Match pyproject.toml
- types-requests
- types-setuptools
- types-PyYAML
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.2
hooks:
Expand Down
22 changes: 0 additions & 22 deletions dev-requirements.txt

This file was deleted.

Loading