Skip to content

Reified RSpaces [5/11]: VectorDB base support and registry interface#332

Open
dylon wants to merge 3 commits intofeature/reified-rspaces-04-generic-rspacefrom
feature/reified-rspaces-05-vectordb
Open

Reified RSpaces [5/11]: VectorDB base support and registry interface#332
dylon wants to merge 3 commits intofeature/reified-rspaces-04-generic-rspacefrom
feature/reified-rspaces-05-vectordb

Conversation

@dylon
Copy link
Copy Markdown
Collaborator

@dylon dylon commented Jan 16, 2026

Summary

  • VectorBackendDyn trait for vector database backends
  • EmbeddingType and pack/unpack utilities
  • Backend registry interface for dynamic backend registration
  • SimilarityMetric definitions (Cosine, Euclidean, Manhattan, etc.)
  • VectorDB integration layer for RSpaces

This is PR 5 of 11 in the Reified RSpaces implementation.

Depends on: Reified RSpaces [4/11]: GenericRSpace core, agents, and space qualifiers

This PR adds the foundation for VectorDB-style similarity matching:

- EmbeddingType: Enum for vector embedding formats (F32, F64, Binary)
- pack/unpack functions for embedding serialization

- BackendRegistry: Registration system for VectorDB backends
- VectorBackendProvider: Trait for backend factory implementations

- SimilarityMetric: Enum for distance functions
  - Cosine, Euclidean, Manhattan, Hamming, Jaccard, DotProduct
- Metric computation functions

This provides the interface layer for VectorDB backends.
The in-memory implementation will be added in PR 6.

This is PR 5 of 11 for the Reified RSpaces implementation.
@dylon dylon marked this pull request as ready for review January 16, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant