-
Notifications
You must be signed in to change notification settings - Fork 418
Tools: unify retrievers/functions and add file tools #164
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
Changes from 10 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d772173
Tools: unify retrievers/functions and add file tools
lusmoura a787d86
lint
lusmoura 36958fc
add file tools
lusmoura d4953d0
add user_id
lusmoura d00d1eb
chunk
lusmoura 7fa775b
Merge branch 'main' into luisa/file_tool
lusmoura 787d47d
force single step
lusmoura 84baa28
handle direct answer
lusmoura 79f34b9
chunk all docs
lusmoura 8d916f7
lint
lusmoura ef70db2
comments + fix tests
lusmoura 183a6d0
fix non streaming chat
lusmoura b972f44
comments and fix tests
lusmoura 4206d28
comments
lusmoura 072ce1f
improve rerank and chunk
lusmoura bb18e6a
comments
lusmoura 0d91666
Merge branch 'main' into luisa/file_tool
lusmoura c57636b
fix log
lusmoura 7885d05
Merge branch 'main' into luisa/file_tool
lusmoura 56cd8e6
fix migration
lusmoura File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""empty message | ||
|
||
Revision ID: 78b159bee0a6 | ||
Revises: c15b848babe3 | ||
Create Date: 2024-06-03 12:46:37.439991 | ||
|
||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "78b159bee0a6" | ||
down_revision: Union[str, None] = "c15b848babe3" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("files", sa.Column("file_content", sa.String(), nullable=False)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("files", "file_content") | ||
# ### end Alembic commands ### |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.