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

Evaluate similarity search performance with NLP-based splitting #3

Open
tomdyson opened this issue Mar 8, 2023 · 0 comments
Open

Comments

@tomdyson
Copy link
Owner

tomdyson commented Mar 8, 2023

e.g.

pip install spacy
python -m spacy download en_core_web_sm

and in Dockerfile:

RUN pip install spacy
RUN python -m spacy download en_core_web_sm

In microllama.py:

from langchain.text_splitter import SpacyTextSplitter

and

splitter = CharacterTextSplitter(... -> splitter = SpacyTextSplitter(...

Index creation takes roughly twice as long.

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

1 participant