Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Ability to make changes to the VectorStore Object and have the provide adapt to it

Đang mở
#59 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, sql
Lĩnh vực
database

Hướng nghiên cứu

Start by reading the provider implementations of EnsureCollectionExistsAsync and how they map vector model properties to collection schemas. Compare what schema changes each provider can support, especially adding a data property to an existing collection. The issue is addressed when the supported behavior and handling of existing records are defined and implemented, with tests covering the relevant provider cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi... Thank you for MEVD... Been a long time user

I use it primarily with MSSQL and one thing that have always been an annoyance is that you are "stuck" with the current schema once you call collection.EnsureCollectionExistsAsync();

So example if i have

public class VectorModel
{
    [VectorStoreKey]
    public required string Id { get; set; }

    [VectorStoreData]
    public required string Question { get; set; }

    [VectorStoreData]
    public required string Answer { get; set; }

    [VectorStoreVector(1536)]
    public string? Vector => $"""
                              <knowledgeBaseEntry>
                                 <question>{Question}</question>
                                 <answer>{Answer}</answer>
                              </knowledgeBaseEntry>
                              """;
}

I the EnsureCollectionExistsAsync create this table (given you name it "myCollection"):

Image

But then lets say I later find out I want to have a TimeStamp Property aka

    [VectorStoreData]
    public required DateTime TimeStamp { get; set; }

then I'm currently forced to delete the table and recreate it (or manually manipulate the Table's design with the new column) before MEVD will work again.

I completely understand that this is not a trivial thing to do (example, what to put as value for existing records for new properties) across all the providers and some of them it might even be impossible, but want to throw it out there...

Ngôn ngữ chính
C#
Star
8
Fork
8
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CommunityToolkit/AI

Tất cả issue của CommunityToolkit/AI

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.