mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-23 23:49:08 -06:00
Refactor and consolidate rag / embedding and tests
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user