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

Open
1 task done
gkiri opened this issue Apr 29, 2024 · 2 comments
Open
1 task done

text2vec-ollama is not working #4796

gkiri opened this issue Apr 29, 2024 · 2 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"
}
}
},
],
}

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

2 participants