Skip to content

[BUG] Explicitly specifying output_dimension doesn't work for Gemini embedding API #1043

@AurumnPegasus

Description

@AurumnPegasus

What is the use case?
Have some way of native implementation of either IVFFlat or HNSW (both of which are natively supported by pgvector) or allow for sending metadata to EmbedText class (say, to use MRL which Gemini provides via parameter config=types.EmbedContentConfig(output_dimensionality=768) )

Describe the solution you'd like
ideally as simple implementation where we can add config or params to EmbedText or Vector to implement these changes.

Additional context


❤️ Contributors, please refer to 📙Contributing Guide.
Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it or Can I work on this issue? to avoid duplicating work. Our Discord server is always open and friendly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions