Refactor and consolidate rag / embedding and tests

This commit is contained in:
shamoon
2025-04-28 17:36:23 -07:00
parent fe205b31c2
commit ad8519482c
8 changed files with 121 additions and 77 deletions

View File

@@ -1,3 +1,4 @@
from llama_index.core.base.embeddings.base import BaseEmbedding
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
from llama_index.embeddings.openai import OpenAIEmbedding
@@ -12,7 +13,7 @@ EMBEDDING_DIMENSIONS = {
}
def get_embedding_model():
def get_embedding_model() -> BaseEmbedding:
config = AIConfig()
match config.llm_embedding_backend: