Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: extend query interface with documents #707

Merged
merged 10 commits into from
Aug 8, 2024
Merged

Conversation

joein
Copy link
Member

@joein joein commented Jul 24, 2024

This PR extends query interface with additional types accepted by fastembed or cloud inference service

This PR updates such structures as VectorInput, VectorStruct, BatchVectorStruct
It updates these structures in an explicit way, so the new types are added directly, like Document, List[Document], Dict[StrictStr, Document] and Dict[StrictStr, List[Document] correspondingly.

An alternative could be an extension of Vector type, but the problem is, that, e.g. in BatchVectorStruct we can't just add List[Vector], cause it will lead to inconsistencies with sparse vectors behaviour, which can only be named.

Copy link

netlify bot commented Jul 24, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit e292f2f
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/66aa5ce543b8bf0008dbb39b
😎 Deploy Preview https://deploy-preview-707--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joein joein requested a review from generall July 30, 2024 12:18
@joein joein force-pushed the extend-query-interface branch from ed19a09 to 5a897d6 Compare July 31, 2024 15:47
@joein joein merged commit fb8dfec into dev Aug 8, 2024
14 checks passed
joein added a commit that referenced this pull request Aug 12, 2024
* new: extend query interface with documents

* new: add named additional types

* fix: add missing changes to generator

* new: modify openapi instead of models py

* fix: avoid wildcard interpretation by shell

* new: replace structure extension method

* fix: update embed models and type aliases

* fix: add accidentally removed file

* fix: r u happy mypy?

* fix: fix branch name in generator
I8dNLo pushed a commit that referenced this pull request Jan 16, 2025
* new: extend query interface with documents

* new: add named additional types

* fix: add missing changes to generator

* new: modify openapi instead of models py

* fix: avoid wildcard interpretation by shell

* new: replace structure extension method

* fix: update embed models and type aliases

* fix: add accidentally removed file

* fix: r u happy mypy?

* fix: fix branch name in generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants