JIVAS action wrapper around LangChain library for abstracted LLM interfacing.
JIVAS action wrapper around the LangChain library for abstracted LLM interfacing.
jivas/langchain_model_action
LangChainModelAction
0.0.1
^2.0.0
openai
: 1.51.0
langchain
: 0.3.21
langchain-community
: 0.3.20
langchain-core
: 0.3.47
langchain-experimental
: 0.3.4
langchain-openai
: 0.3.9
This package, developed by V75 Inc., provides a JIVAS action wrapper for the LangChain library, facilitating abstracted interfacing with large language models (LLM). As a core action, it simplifies and streamlines interactions with LLMs. The package is a singleton and requires the Jivas library version 2.0.0. It also depends on various Python packages for its functionality, including openai
and different components of the LangChain ecosystem.
Below is detailed guidance on how to configure and use the LangChain Model Action.
The LangChain Model Action provides an abstraction layer for interacting with large language models (LLMs). It supports multiple configurations for various use cases, including:
The configuration consists of the following components:
model_settings
Defines the settings for the LLM model, such as provider, API keys, and parameters.
model_settings = {
"provider": "openai", # Example: "openai", "huggingface"
"api_key": "your_api_key", # API key for the provider
"parameters": { # Model-specific parameters
"temperature": 0.7,
"max_tokens": 150
}
}
model_settings = {
"provider": "openai",
"api_key": "your_openai_api_key",
"parameters": {
"temperature": 0.5,
"max_tokens": 100
}
}
langchain_model_action
project.git clone https://github.com/TrueSelph/langchain_model_action
git checkout -b new-feature-x
git commit -m 'Implemented new feature x.'
git push origin new-feature-x
This project is protected under the Apache License 2.0. See LICENSE for more information.
jvcli download action jivas/langchain_model_action
Last published
3 months ago
Version
0.0.1
Downloads
96
Author
jivasType
action
Visibility
Public
Tags