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

Fix: Fix broken indexing – only first two text chunks are indexed #9

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

Klingefjord
Copy link
Contributor

@Klingefjord Klingefjord commented Jan 21, 2023

Description

Awesome library, but it it has a pretty serious bug:

docsearch.from_texts(...) doesn't actually add anything to the vectorstore, it only returns a new vectorstore. This means that currently, only the first two text chunks have their indices saved.

Changing to .add_texts() fixes this. No need to pass the OpenAIEmbeddings as it is saved in the instance.

@Klingefjord Klingefjord changed the title Fix: Fix broken indexing, only worked for first 2 text chunks Fix: Fix broken indexing – only first two text chunks are indexed Jan 21, 2023
@namuan namuan merged commit 23696e9 into namuan:main Jan 29, 2023
@namuan
Copy link
Owner

namuan commented Jan 29, 2023

Thanks. It is merged and should be available in 1.5.1

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