kotaemon/knowledgehub
Nguyen Trung Duc (john) c339912312 [AUR-389] Add base interface and embedding model (#17)
This change provides the base interface of an embedding, and wrap the Langchain's OpenAI embedding. Usage as follow:

```python
from kotaemon.embeddings import AzureOpenAIEmbeddings

model = AzureOpenAIEmbeddings(
    model="text-embedding-ada-002",
    deployment="embedding-deployment",
    openai_api_base="https://test.openai.azure.com/",
    openai_api_key="some-key",
)
output = model("Hello world")
```
2023-09-14 14:08:58 +07:00
..
contribs [AUR-396] Scaffold prompt engineering code base section (#5) 2023-08-30 14:31:21 +07:00
documents [AUR-391, AUR-393] Add Document and DocumentReader base (#6) 2023-08-31 11:24:12 +07:00
embeddings [AUR-389] Add base interface and embedding model (#17) 2023-09-14 14:08:58 +07:00
llms [AUR-389] Add base interface and embedding model (#17) 2023-09-14 14:08:58 +07:00
loaders [AUR-391, AUR-393] Add Document and DocumentReader base (#6) 2023-08-31 11:24:12 +07:00
pipelines Initiate repository 2023-08-16 14:56:48 +07:00
__init__.py [AUR-385, AUR-388] Declare BaseComponent and decide LLM call interface (#2) 2023-08-29 15:47:12 +07:00
cli.py Initiate repository 2023-08-16 14:56:48 +07:00
components.py Fix import 2023-09-04 10:30:53 +07:00
config.py Initiate repository 2023-08-16 14:56:48 +07:00
schema.py Initiate repository 2023-08-16 14:56:48 +07:00