-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: define schemas as classes #99
Conversation
.github/workflows/tests.yml
Outdated
@@ -28,7 +28,20 @@ jobs: | |||
- name: Install dependencies | |||
run: poetry install | |||
|
|||
- name: Pull Ollama Docker image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be mocked instead
cls.embedding_model = MPNetAdapter() | ||
cls.target_vector = "sentence_transformers_all_mpnet_base_v2" | ||
cls.target_vector = "nomic_embed_text" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
External components should be mocked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for Weaviate vectorizer and should passed into the configuration of collections before the creation of them. Thus, I need a valid model to properly initialize it. The target_vector
here only refers to the name of the named vector. Weaviate does not give us any testing client unfortunately. I understand your point and I will apply it for the OllamaAdapater
.
closes #90