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

Add documentation #13

Open
DanielDKnudsen opened this issue Jul 17, 2024 · 0 comments
Open

Add documentation #13

DanielDKnudsen opened this issue Jul 17, 2024 · 0 comments

Comments

@DanielDKnudsen
Copy link

DanielDKnudsen commented Jul 17, 2024

There is lacking documentation for the following steps in the setup of korvus in order to run the example scripts:

1. When using a Hugging Face model in a Pipeline, you need to pass a parameter "trust_remote_code": True. Look at below example:

"semantic_search": {"model": "Alibaba-NLP/gte-base-en-v1.5",

Should be:

"semantic_search": {"model": "Alibaba-NLP/gte-base-en-v1.5", "parameters": {"trust_remote_code": True, "token": hf_token}},

2. In order to run any segmentation search you need to create the extension for vectors in the Postgres Database:

$ CREATE EXTENSION IF NOT EXISTS vector;

3. You need to authenticate to Hugging Face in order to use their models in the korvus.OpenSourceAI() component.

This issue I haven't resolved yet

@DanielDKnudsen DanielDKnudsen changed the title Documentation is lacking Add documentation Jul 17, 2024
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