Skip to content

Add VectorField Support for Tortoise ORM #140

@Georgedyatmsk1405

Description

@Georgedyatmsk1405

I've developed a feature that adds VectorField support to Tortoise ORM, including implementations for common distance calculations (L2, cosine, etc.). This would enable native vector operations with PostgreSQL's pgvector extension.

I attempted to open a pull request from my fork but encountered permission issues. If this is something you'd like to consider merging, here's the link to my implementation:
🔗 Georgedyatmsk1405#1

Key features:

Native VectorField type for model definitions
Built-in distance annotations (L2Distance, CosineDistance, etc.)
Seamless integration with existing Tortoise ORM queries
Would appreciate your review when you have time. Let me know if you'd prefer me to submit this through a different process.

Thanks for considering this contribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy