Skip to content

Make add_document's opt argument be a Rust Option #299

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Rushmore75
Copy link

Change VectorStore's add_document function to take an Option<&Self::Options> instead of &Self::Options. This makes it more obvious to the user of the lib that you aren't going to accidentally override a previously set option by throwing a default object in.

@Rushmore75
Copy link
Author

688834d allows for users to get the sources of doucments the ai is pulling from

@Abraxas-365
Copy link
Owner

This will be a braking change right?

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