Skip to content

Commit

Permalink
remove huggingface embeddings option
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 committed Oct 30, 2023
1 parent 9087956 commit 7477666
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
]
},
"dependencies": {
"@huggingface/inference": "^2.5.0",
"autosize": "^6.0.1",
"dompurify": "^2.4.1",
"jsdom": "^22.1.0",
Expand Down
6 changes: 0 additions & 6 deletions server/olly/models/llm_model_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Client } from '@opensearch-project/opensearch';
import { Callbacks } from 'langchain/callbacks';
import { ChatAnthropic } from 'langchain/chat_models/anthropic';
import { Embeddings } from 'langchain/embeddings/base';
import { HuggingFaceInferenceEmbeddings } from 'langchain/embeddings/hf';
import { OpenAIEmbeddings } from 'langchain/embeddings/openai';
import { OpenAI } from 'langchain/llms/openai';
import { OpenSearchVectorStore } from 'langchain/vectorstores/opensearch';
Expand Down Expand Up @@ -56,11 +55,6 @@ export class LLMModelFactory {
return new OpenAIEmbeddings();

case 'claude':
return new HuggingFaceInferenceEmbeddings({
model: 'sentence-transformers/all-mpnet-base-v2',
apiKey: process.env.HUGGINGFACEHUB_API_TOKEN,
});

case 'ml-commons-claude':
default:
return new MLCommonsEmbeddingsModel(options.client);
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
resolved "https://registry.yarnpkg.com/@danieldietrich/copy/-/copy-0.4.2.tgz#c1cabfa499d8b473ba95413c446c1c1efae64d24"
integrity sha512-ZVNZIrgb2KeomfNahP77rL445ho6aQj0HHqU6hNlQ61o4rhvca+NS+ePj0d82zQDq2UPk1mjVZBTXgP+ErsDgw==

"@huggingface/inference@^2.5.0":
version "2.6.1"
resolved "https://registry.yarnpkg.com/@huggingface/inference/-/inference-2.6.1.tgz#d11f4c44d824e92577ec460c6ff60474ef36467d"
integrity sha512-qFYchgOCPeEkZJKiSr7Kz62QwukJtgkeQCT7Q0SSKUcvHpTQVNJp6i/JrJMR4dBdzQysJ1SZDC0pLBBnnskTag==

"@jest/schemas@^29.6.3":
version "29.6.3"
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"
Expand Down

0 comments on commit 7477666

Please sign in to comment.