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

text2vec-ollama is not working #4796

Closed
1 task done
gkiri opened this issue Apr 29, 2024 · 5 comments
Closed
1 task done

text2vec-ollama is not working #4796

gkiri opened this issue Apr 29, 2024 · 5 comments
Labels

Comments

@gkiri
Copy link

gkiri commented Apr 29, 2024

How to reproduce this bug?

Enable the text2vec-ollama module

What is the expected behavior?

able to import

What is the actual behavior?

skipping the module

Supporting information

No response

Server Version

1.24.10

Code of Conduct

@gkiri gkiri added the bug label Apr 29, 2024
@trengrj
Copy link
Member

trengrj commented Apr 30, 2024

@gkiri can you please supply your text2vec-ollama configuration?

@gkiri
Copy link
Author

gkiri commented Apr 30, 2024

version: '3.4'
services:
weaviate_anon:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: cr.weaviate.io/semitechnologies/weaviate:1.24.10
ports:
- 8080:8080
- 50051:50051
restart: on-failure:0
environment:
OPENAI_APIKEY: $OPENAI_APIKEY
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-ollama'
ENABLE_MODULES: 'text2vec-cohere,text2vec-huggingface,text2vec-openai,generative-openai,generative-cohere,text2vec-ollama'
BACKUP_FILESYSTEM_PATH: '/var/lib/weaviate/backups'
CLUSTER_HOSTNAME: 'node1'


class_o# bj = {
"class": "Question1",
"description": "Information from a Jeopardy! question", # description of the class
"vectorizer": "text2vec-ollama",
"moduleConfig": {
"generative-openai": {} # Set generative-openai as the generative module
},
"properties": [
{
"name": "question",
"dataType": ["text"],
"description": "The question",
"moduleConfig": {
"text2vec-ollama": { # this must match the vectorizer used
"vectorizePropertyName": True,
"tokenization": "lowercase"
}
}
},
{
"name": "answer",
"dataType": ["text"],
"description": "The answer",
"moduleConfig": {
"text2vec-ollama": { # this must match the vectorizer used
"vectorizePropertyName": False,
"tokenization": "whitespace"
}
}
},
],
}

@nevotheless
Copy link

Came here because mine doesn't work either and i have no idea how to troubleshoot.

Anyhow, check here: https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-ollama#collection-level you need to add the ollama endpoint somewhere as well.

@gyuta
Copy link

gyuta commented Jun 9, 2024

@gkiri

https://weaviate.io/developers/weaviate/modules/retriever-vectorizer-modules/text2vec-ollama
In document, it says

ADDED IN v1.25

But your weaviate version is 1.24.10.
So i think you have to update your weaviate.

In my case, I changed docker-compose.yml

image: cr.weaviate.io/semitechnologies/weaviate:latest

and i got a "version": "1.25.2"

@gkiri
Copy link
Author

gkiri commented Jun 11, 2024

works with latest .Thanks

@gkiri gkiri closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants