Skip to content

Commit

Permalink
Add update
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Dec 6, 2024
1 parent 8124cb7 commit 491017d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hypha/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,7 @@ async def add_vectors(
self,
artifact_id: str,
vectors: list,
update: bool = False,
embedding_models: Optional[Dict[str, str]] = None,
context: dict = None,
):
Expand Down Expand Up @@ -2024,6 +2025,7 @@ async def add_vectors(
await self._vector_engine.add_vectors(
f"{artifact.workspace}/{artifact.alias}",
vectors,
update=update,
embedding_models=embedding_models
or artifact.config.get("embedding_models"),
s3_client=s3_client,
Expand Down

0 comments on commit 491017d

Please sign in to comment.