kotaemon/knowledgehub/llms
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
..
chats [AUR-389] Add base interface and embedding model (#17) 2023-09-14 14:08:58 +07:00
completions [AUR-361] Setup pre-commit, pytest, GitHub actions, ssh-secret (#3) 2023-08-30 07:22:01 +07:00
__init__.py [AUR-385, AUR-388] Declare BaseComponent and decide LLM call interface (#2) 2023-08-29 15:47:12 +07:00
base.py [AUR-361] Setup pre-commit, pytest, GitHub actions, ssh-secret (#3) 2023-08-30 07:22:01 +07:00