-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fastapi Logic for Pippy Fixes#1 #12
base: main
Are you sure you want to change the base?
Conversation
I mentioned you in #9, I'm guessing you haven't taken a look, please do and make the necessary changes to that PR as there's some changes there already. Your use of |
Yes, his implemented code misses the LCEL chain and some other functionalities. I'll make those changes soon. |
@chimosky , can you tell me if any other modification is required in this code? Then, I can open a PR to the Qixiang Branch. |
agent.setup_vectorstore(document_paths) | ||
|
||
# Define API routes | ||
@app.get("/") | ||
@router.get("/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does each router require it's own root route?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, each router does not require its root route. I've added it to provide a default response. It acts as an entry point for our API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would they be a need to provide a default response seeing as when pointing the activity to it, you'll use the right url.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so shall I replace it with something like /Pippy_AI_Assistant ?
I've made some comments, please write better commit messages, "Modified Fastapi code" isn't a great commit message and tells very little about the changes you made in the commit. |
@walterbender @chimosky This includes the FastApi framework for the RAG model of Pippy's AI assistant Fixes#1