这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1420

What is in this change?

From legacy code we used to go through the LLM class to reach the embedTextInput and embedChunks functions. This does not make sense to go though when calling addDocuments in any vector db since instantiation of an LLM can have API_KEY requirements and makes no sense, since the LLM is not even called during this operation.

We move now to just grabbing the embedder engine alone and do the query directly on the class instead of via a passthrough on the LLM provider. It can still be accessed through the LLM class and needs to be for prompt embedding, but this eliminate the need on uploading only to have a valid LLM key.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit cae6cee into master May 17, 2024
@timothycarambat timothycarambat deleted the 1420-skip-llm-for-embedding branch May 17, 2024 00:51
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Jul 31, 2024
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 1, 2024
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 2, 2024
CrackerCat pushed a commit to CrackerCat/anything-llm that referenced this pull request Aug 3, 2024
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvements]: Embedding documents should not be blocked by LLM settings

2 participants