application folder related changes:

* optimize content of requirements.txt
* upgrade libs
* fix imports
This commit is contained in:
Anton Larin
2024-01-27 16:25:19 +01:00
parent e8099c4db5
commit 9e04b7796a
4 changed files with 24 additions and 136 deletions

View File

@@ -6,9 +6,9 @@ from application.core.settings import settings
from retry import retry
# from langchain.embeddings import HuggingFaceEmbeddings
# from langchain.embeddings import HuggingFaceInstructEmbeddings
# from langchain.embeddings import CohereEmbeddings
# from langchain_community.embeddings import HuggingFaceEmbeddings
# from langchain_community.embeddings import HuggingFaceInstructEmbeddings
# from langchain_community.embeddings import CohereEmbeddings
def num_tokens_from_string(string: str, encoding_name: str) -> int: