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

refactor: define schemas as classes #99

Merged
merged 9 commits into from
Mar 26, 2025
Merged

Conversation

mehmetcanay
Copy link
Member

closes #90

@mehmetcanay mehmetcanay self-assigned this Mar 20, 2025
@mehmetcanay mehmetcanay requested a review from tiadams March 25, 2025 08:24
@mehmetcanay mehmetcanay added the enhancement New feature or request label Mar 25, 2025
@@ -28,7 +28,20 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Pull Ollama Docker image
Copy link
Member

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"
Copy link
Member

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

Copy link
Member Author

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.

@mehmetcanay mehmetcanay merged commit e3a91be into main Mar 26, 2025
7 checks passed
@mehmetcanay mehmetcanay deleted the define-schema-as-classes branch March 26, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract schema configuration to class object
2 participants