Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: byronnlandry <[email protected]>
  • Loading branch information
miararoy and byronnlandry authored Nov 2, 2023
1 parent 1d9d566 commit acc42c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/canopy_server/api_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ContextUpsertRequest(BaseModel):


class ContextDeleteRequest(BaseModel):
document_ids: List[str] = Field(description="List of document ids to delete.")
document_ids: List[str] = Field(description="List of document IDs to delete.")


class HealthStatus(BaseModel):
Expand Down
6 changes: 3 additions & 3 deletions src/canopy_server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def stringify_content(response: StreamingChatResponse):
"/context/query",
response_model=ContextContentResponse,
responses={
500: {"description": "Failed to query the knowledgebase or Build the context"}
500: {"description": "Failed to query the knowledge base or build the context"}
},
)
async def query(
Expand Down Expand Up @@ -149,8 +149,8 @@ async def upsert(
request: ContextUpsertRequest = Body(...),
) -> SuccessUpsertResponse:
"""
Upsert documents into the knowledgebase. 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 will be updated.
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.
The documents will be chunked and encoded, then the resulting encoded chunks will be sent to the Pinecone index in batches
""" # noqa: E501
Expand Down

0 comments on commit acc42c3

Please sign in to comment.