This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
Update in canopy_server/app.py is not reflecting the update and using default version #275
Unanswered
tulaseerao
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @tulaseerao, all in all your code seems correct. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folks,
I tried to update upsert route(/upsert) in canopy_server/app.py to add new parameter called index_name to override the index name for upsertion. I made all the changes to app.py and tried it locally and still using default behavior. Is there anything I need to delete and restart the server to reflect my changes?
Here is the snippet I'm trying to change
Over all code
`async def upsert(
request: ContextUpsertRequest = Body(...),
) -> SuccessUpsertResponse:
"""
Upsert documents into the knowledge base. Upserting is a way to add new documents or update existing ones.
Each document has a unique ID. If a document with the same ID already exists, it is updated.
`
Beta Was this translation helpful? Give feedback.
All reactions