get()
Get a document by ID.Signature
Return Value
Returns the full document embedding orundefined if not found.
Example
has()
Check if a document exists.Signature
Example
filter()
Get documents matching a filter (without semantic ranking).Signature
Parameters
Return Value
Returns all matching documents in insertion order (not ranked by similarity).Example
Use
search() with a filter for semantic ranking. Use filter() when you only need metadata-based retrieval without similarity scoring.getAll()
Get all documents.Signature
Example
size()
Get the number of documents.Signature
Example
keys()
Get all document IDs.Signature
Example
values()
Get all document embeddings.Signature
Example
getStats()
Get database statistics.Signature
Return Value
Example
Related
search()
Semantic search
add()
Add documents
Documents
Document interfaces