Skip to content

How? some basic questions (get an specific ID) #95

@jonathanhecl

Description

@jonathanhecl

How I can get an specific ID? I have the ID in the metadata of another item.

doc.Query(ctx, "", 1, map[string]string{"id": x.Metadata["reference"]}, nil)

Or I need to add the ID on metadatas?

Currenly I add the data with:
c.Add(ctx, []string{chunk.ID}, embeddings, []map[string]string{addToMapString(map[string]string{"source": fmt.Sprintf("%s:%d", source.Name, i)}, chunk.Metadata)}, []string{chunk.Content})

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions