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

[QUESTION] QueryResults Option's usage #9

Closed
fgsch opened this issue Jun 25, 2024 · 4 comments
Closed

[QUESTION] QueryResults Option's usage #9

fgsch opened this issue Jun 25, 2024 · 4 comments

Comments

@fgsch
Copy link

fgsch commented Jun 25, 2024

QueryResults is defined as:

pub struct QueryResult {
    pub ids: Vec<Vec<String>>,
    pub metadatas: Option<Vec<Option<Vec<Option<Metadata>>>>>,
    pub documents: Option<Vec<Option<Vec<Option<String>>>>>,
    pub embeddings: Option<Vec<Option<Vec<Embedding>>>>,
    pub distances: Option<Vec<Option<Vec<f32>>>>,
}

Beyond the outer Option for all the fields and the innermost one for MetaData, why is the reason/purpose for the rest?
I've so far failed to create a query result where these are needed.

@Anush008
Copy link
Owner

Hi @fgsch. These structures are dated. They need an update.

I will look into this during the weekend.

@fgsch
Copy link
Author

fgsch commented Jun 25, 2024

Thanks for letting me know.

Would you be interested in a PR?

@Anush008
Copy link
Owner

@fgsch, contributions are always 🤗

@Anush008 Anush008 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
@Anush008
Copy link
Owner

Closing since stale.
Please feel free to re-open if needed.

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

No branches or pull requests

2 participants