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

Apply "Strategy" like pattern to Vectorizers, Embedders and LLM Requesters #148

Merged
merged 73 commits into from
Nov 21, 2024

Conversation

jfrverdasca
Copy link
Contributor

@jfrverdasca jfrverdasca commented Nov 20, 2024

What this PR change:

  • Apply Strategy like pattern to:
    • Vectorizers (embeddings.vectorizers.base)
    • Embedders (embeddings.embedder)
    • LLM Requesters (litellm_service.llm_requester)

Reviewers:

Issues:

Print screens showing the changes:

NA

kenvontucky and others added 30 commits October 28, 2024 12:30
- makefile updated with Django related commands
- allowed host fix
* Added ollama to docker compose
* Changed code to use local embedder model (provisional)
* Some Todos must be done yet
* First working version
* Makefile build added to compose up
* embeddings.py full refactor (Now in labs/embeddings/base)
* added new embeddings method in all code where old version was used
* tests correction
* Readme now have steps to run OpenAI or Local LLM model
* Fix typo in embeddings word
…om-config-model

# Conflicts:
#	config/configuration_variables.py
#	config/models/config.py
#	config/settings.py
#	labs/database/embeddings.py
#	labs/embeddings/vectorizers/chunk_vectorizer.py
#	labs/embeddings/vectorizers/python_vectorizer.py
#	labs/llm.py
#	labs/tasks/llm.py
#	tests/conftest.py
#	tests/database/test_embeddings.py
# Conflicts:
#	config/configuration_variables.py
#	config/models/config.py
#	config/settings.py
#	labs/database/embeddings.py
…om-config-model

# Conflicts:
#	labs/config/settings.py
#	labs/config/urls.py
#	labs/core/migrations/0001_initial.py
#	labs/core/models.py
# Conflicts:
#	labs/config/configuration_variables.py
#	labs/core/migrations/0001_initial.py
#	labs/embeddings/openai.py
#	labs/embeddings/vectorizers/chunk_vectorizer.py
#	labs/llm.py
#	labs/tasks/llm.py
#	labs/tests/conftest.py
#	labs/tests/database/test_embeddings.py
#	labs/tests/test_local_llm.py
#	poetry.lock
#	pyproject.toml
* Added model VectorizerModel
* Added VectorizerModel admin
* Added VectorizerModel fixtures
* Vectorizers now implement Strategy pattern
# Conflicts:
#	labs/core/admin.py
#	labs/core/migrations/0001_initial.py
#	labs/core/models.py
#	labs/embeddings/embedder.py
#	labs/embeddings/openai.py
#	labs/embeddings/vectorizers/chunk_vectorizer.py
#	labs/litellm_service/llm_requester.py
#	labs/litellm_service/ollama.py
#	labs/litellm_service/openai.py
#	labs/llm.py
#	labs/tasks/llm.py
#	labs/tests/conftest.py
#	labs/tests/test_llm.py
* ChunckVectorizer now recieves embedder in init
* sample.ipynb bug fix
@jfrverdasca jfrverdasca merged commit 797362a into main Nov 21, 2024
1 check passed
@jfrverdasca jfrverdasca deleted the jv/147/vectorizer_strategy branch November 21, 2024 14:20
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

Successfully merging this pull request may close these issues.

4 participants