Skip to content

Share client between LlamaCpp LLM and LlamaCpp Embedding #2

@nasirus

Description

@nasirus

Currently when using any chain that has as a llm LlamaCpp and a vector store that was created using a LlamaCppEmbeddings, it requires to have in memory two models (due to how both objects are created and those two clients are created). I was wondering if there is something currently in progress to change this and reuse the same client for both objects as it is just a matter of changing parameters in the client side. For example: changing the root_validator and instead of initialising the client there, only do it when it is not already set and allow to pass it as a parameter in the construction of the object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions