Skip to main content

Library facilitating the integration of different LLM providers in LangChain (e.g. `ollama`, `Google Gemini`, etc).

Project description


LangChain Util
LangChain Utility

Description

LangChain is a framework for developing applications powered by language models. It enables application that:

  • Are context aware; i.e. connect a language model to sources context
  • Reason; i.e. rely on a language model to reason

This library offers integration with the following Generative AI servers:

This library extends LangChain by providing facilities to define configurations, templates for execution of LLMs.

Documentation

To get started refer to the documentation.

Development

Requirements

  • Git
  • llm-guard >= 0.3
  • langchain >= 0.2
  • traceloop-sdk >= 0.13
  • Python = 3.11
  • Poetry >= 1.7.0
  • streamlit >= 1.32

Environment Variables

Name Description Default
LOG_DIR Location of the logging files logs/
LOG_LEVEL Logging level to be applied during execution INFO
AUDIO_TMP_FOLDER Location of temporary audio files when transcribing videos tmp/audio/
PROMPT_CONFIG_FOLDER Location of the Prompt configuration for execution prompt_configs/

How to prepare the environment

  • Install dependencies
    poetry install
    

    NOTE To update dependencies, it may be needed to run the following command prior to installing the packages:
    poetry lock
    

  • Test unit test coverage for the project
    poetry run coverage run -m pytest && poetry run coverage report -m
    
    Note Report is only generated if all unit test have completed successfully.

About RQle.AI

RQle.AI believes in the transformative potential of Generative AI. More specifically, it focuses on showcasing real-world applications of how Generative AI can empower individuals and organizations worldwide in addressing customers' "job to be done" problems and create value for them.

Disclaimer

This library and its use of Large Language Models (LLMs) are subject to the following disclaimers:

  • LLMs are still under development and may generate inaccurate, incomplete, or biased output;
  • LLMs can inherit and reflect biases present in their training data;
  • Developers of this library are not liable for any damages or losses arising from its use;
  • You are responsible for using the library and LLMs in an ethical and responsible manner.

By using this library, you acknowledge and agree to these disclaimers and limitations.


RQle.AI   RQle.AI - 2024

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rqle_ai_langchain_util-0.4.0a0.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rqle_ai_langchain_util-0.4.0a0-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file rqle_ai_langchain_util-0.4.0a0.tar.gz.

File metadata

  • Download URL: rqle_ai_langchain_util-0.4.0a0.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for rqle_ai_langchain_util-0.4.0a0.tar.gz
Algorithm Hash digest
SHA256 52dcb7aa8730eee9dacdfb4adf7a07553f79b6d9a42dec240b7debc9e7057a07
MD5 25789cf2d3006e7346ba53c2198a9e3e
BLAKE2b-256 1485aa1f9f7301b659fec42887772a2214e6335bb4ff853f7ef740aceeb01b12

See more details on using hashes here.

Provenance

The following attestation bundles were made for rqle_ai_langchain_util-0.4.0a0.tar.gz:

Publisher: python-publish.yml on RQledotai/rqle-ai-langchain-util

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rqle_ai_langchain_util-0.4.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for rqle_ai_langchain_util-0.4.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 51e1de13e9de91518be7dcebbb9d6bd41abd41cc1f1c7b7f863f21498c992b64
MD5 fa428959c779697c4e2e88fc5d536d28
BLAKE2b-256 d43fb48f34e74a07d625c5e62c9ab7f126a5e7fe08d21ce3f21fffd91be7381a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rqle_ai_langchain_util-0.4.0a0-py3-none-any.whl:

Publisher: python-publish.yml on RQledotai/rqle-ai-langchain-util

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page