repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from abc import ABC, abstractmethod |
| #2 | |
| #3 | |
| #4 | class VectorStoreBase(ABC): |
| #5 | @abstractmethod |
| #6 | def create_col(self, name, vector_size, distance): |
| #7 | """Create a new collection.""" |
| #8 | pass |
| #9 | |
| #10 | @abstractmethod |
| #11 | def insert(self, vectors, payloads=None, ids=None): |
| #12 | """Insert vectors into a collection.""" |
| #13 | pass |
| #14 | |
| #15 | @abstractmethod |
| #16 | def search(self, query, vectors, limit=5, filters=None): |
| #17 | """Search for similar vectors.""" |
| #18 | pass |
| #19 | |
| #20 | @abstractmethod |
| #21 | def delete(self, vector_id): |
| #22 | """Delete a vector by ID.""" |
| #23 | pass |
| #24 | |
| #25 | @abstractmethod |
| #26 | def update(self, vector_id, vector=None, payload=None): |
| #27 | """Update a vector and its payload.""" |
| #28 | pass |
| #29 | |
| #30 | @abstractmethod |
| #31 | def get(self, vector_id): |
| #32 | """Retrieve a vector by ID.""" |
| #33 | pass |
| #34 | |
| #35 | @abstractmethod |
| #36 | def list_cols(self): |
| #37 | """List all collections.""" |
| #38 | pass |
| #39 | |
| #40 | @abstractmethod |
| #41 | def delete_col(self): |
| #42 | """Delete a collection.""" |
| #43 | pass |
| #44 | |
| #45 | @abstractmethod |
| #46 | def col_info(self): |
| #47 | """Get information about a collection.""" |
| #48 | pass |
| #49 | |
| #50 | @abstractmethod |
| #51 | def list(self, filters=None, limit=None): |
| #52 | """List all memories.""" |
| #53 | pass |
| #54 | |
| #55 | @abstractmethod |
| #56 | def reset(self): |
| #57 | """Reset by delete the collection and recreate it.""" |
| #58 | pass |
| #59 |