improve embeddings API results

This commit is contained in:
josc146
2023-07-25 20:30:43 +08:00
parent 77868c798b
commit 1df345b5eb
4 changed files with 11 additions and 2 deletions

View File

@@ -91,7 +91,11 @@ body.json:
## 埋め込み API の例
LangChain を使用している場合は、`OpenAIEmbeddings(openai_api_base="http://127.0.0.1:8000", openai_api_key="sk-")`を使用してください
Note: v1.4.0 has improved the quality of embeddings API. The generated results are not compatible
with previous versions. If you are using embeddings API to generate knowledge bases or similar, please regenerate.
LangChain を使用している場合は、`OpenAIEmbeddings(openai_api_base="http://127.0.0.1:8000", openai_api_key="sk-")`
を使用してください
```python
import numpy as np