Skip to content

Support vector-store layer & add a vectordb support #239

Closed

Description

@imbajin

Introduce a vector storage abstraction interface for the project. (Currently we only support faiss as the embedding engine)

The first step will focus on implementing encapsulated support for one standalone vector database (e.g., Qdrant, Chroma, or Milvus). This interface aims to abstract the underlying vector database, allowing for smooth future expansion to support other backends such as.

It should also enable easy and quick switching between different implementations to handle growing data volumes and more complex application scenarios, while maintaining a lightweight and simple interface.

Could refer:

Let LLM 🤖 generate a simple diagram, where faiss is already built-in, for general reference only (no need to copy it:)

classDiagram
    direction LR

    class Application {
        +useVectorStore()
    }

    class VectorStoreInterface {
        <<Interface>>
        +add_vectors(vectors, ids)
        +search(query_vector, k)
        +delete_vectors(ids)
        +update_vectors(vectors, ids)
    }

    class FaissVectorStore {
        +add_vectors(vectors, ids)
        +search(query_vector, k)
        +delete_vectors(ids)
        +update_vectors(vectors, ids)
    }

    class QdrantVectorStore {
        <<Future>>
        +add_vectors(vectors, ids)
        +search(query_vector, k)
        +delete_vectors(ids)
        +update_vectors(vectors, ids)
    }

    class ChromaVectorStore {
        <<Future>>
        +add_vectors(vectors, ids)
        +search(query_vector, k)
        +delete_vectors(ids)
        +update_vectors(vectors, ids)
    }

    class MilvusVectorStore {
        <<Future>>
        +add_vectors(vectors, ids)
        +search(query_vector, k)
        +delete_vectors(ids)
        +update_vectors(vectors, ids)
    }

    Application --> VectorStoreInterface : uses
    VectorStoreInterface <|-- FaissVectorStore : implements (Initial)
    VectorStoreInterface <|-- QdrantVectorStore : implements
    VectorStoreInterface <|-- ChromaVectorStore : implements
    VectorStoreInterface <|-- MilvusVectorStore : implements

    note for FaissVectorStore "第一阶段实现"
Loading

Activity

  1. changed the title [-]support Vector Store Engine Layer & add a vectordb support[/-] [+]Support vector-store layer & add a vectordb support[/+] on May 16, 2025
  2. added theissue type on May 16, 2025
  3. mikumifa commented on May 16, 2025

    @mikumifa
    Contributor

    Can i work on this issue?

  4. imbajin commented on May 17, 2025

    @imbajin
    MemberAuthor

    Can i work on this issue?

    @mikumifa sure, if one task is not assigned, it means anyone could take it~

  5. added a commit that references this issue on Oct 28, 2025
    28f8575
  6. added a commit that references this issue on Jun 30, 2026
    8d95922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions