Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
260a2bf
Improve vector query return value
edwinyyyu Mar 9, 2026
a28a1b2
Update APIs
edwinyyyu Mar 10, 2026
6e4f200
Add partition key to support efficient native multi-tenancy
edwinyyyu Mar 13, 2026
fd313c5
Hoist partition key concept up -- now namespaces and names
edwinyyyu Mar 14, 2026
8d6f304
Revert "Hoist partition key concept up -- now namespaces and names"
edwinyyyu Mar 14, 2026
19aec8e
Reapply "Hoist partition key concept up -- now namespaces and names"
edwinyyyu Mar 16, 2026
b51a62a
Define concurrency guarantees
edwinyyyu Mar 16, 2026
12a9146
Revert two commits
edwinyyyu Mar 16, 2026
a12e15c
Revert "Revert two commits"
edwinyyyu Mar 17, 2026
a6257f6
Update concurrency guarantees
edwinyyyu Mar 17, 2026
e3d77e5
Update lifecycle APIs
edwinyyyu Mar 17, 2026
aef722a
Remove unnecessary error
edwinyyyu Mar 17, 2026
a4b1615
Add new error
edwinyyyu Mar 17, 2026
491afd4
Add collection configuration data model
edwinyyyu Mar 18, 2026
74da1c4
Rename error for symmetry and simplicity
edwinyyyu Mar 18, 2026
3be75a1
Guarantee serialization order
edwinyyyu Mar 18, 2026
0b27fef
Support deserialization
edwinyyyu Mar 18, 2026
031aa6e
Fix return type
edwinyyyu Mar 18, 2026
bb18f3b
Don't confuse {} and None
edwinyyyu Mar 18, 2026
d6ff783
Add naming constraints
edwinyyyu Mar 18, 2026
1dbb8ab
Validate identifiers
edwinyyyu Mar 18, 2026
dc52d85
Add timezone utilities
edwinyyyu Mar 27, 2026
63dfe14
Define behavior for empty Record attributes
edwinyyyu Apr 1, 2026
5108d37
Merge branch 'main' into batch_vectors
malatewang Apr 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update APIs
Signed-off-by: Edwin Yu <[email protected]>
  • Loading branch information
edwinyyyu committed Apr 2, 2026
commit a28a1b2ea8bb1d03dc6ecaaaedab4880287dbf02
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
class Collection(ABC):
"""Collection in a vector store."""

@abstractmethod
async def startup(self) -> None:
"""Startup."""
raise NotImplementedError

@abstractmethod
async def shutdown(self) -> None:
"""Shutdown."""
raise NotImplementedError

@abstractmethod
async def upsert(
self,
Expand All @@ -43,7 +53,7 @@ async def query(
score_threshold: float | None = None,
limit: int | None = None,
property_filter: FilterExpr | None = None,
return_vector: bool = True,
return_vector: bool = False,
return_properties: bool = True,
) -> Iterable[QueryResult]:
"""
Expand Down Expand Up @@ -82,7 +92,7 @@ async def get(
self,
*,
record_uuids: Iterable[UUID],
return_vector: bool = True,
return_vector: bool = False,
return_properties: bool = True,
) -> Iterable[Record]:
"""
Expand Down Expand Up @@ -164,7 +174,7 @@ async def create_collection(
raise NotImplementedError

@abstractmethod
async def get_collection(self, collection_name: str) -> Collection:
async def get_collection(self, collection_name: str) -> Collection | None:
"""
Get a collection from the vector store.

Expand All @@ -173,8 +183,8 @@ async def get_collection(self, collection_name: str) -> Collection:
Name of the collection to get.

Returns:
Collection:
The requested collection.
Collection | None:
The requested collection, or None if it does not exist.

"""
raise NotImplementedError
Expand Down