Skip to main content

LLM helper library.

Project description

llmhelper

LLM helper library.

安装

pip install llmhelper

环境变量

  • OPENAI_API_KEY
  • OPENAI_BASE_URL
  • OPENAI_CHAT_MODEL
  • OPENAI_EMBEDDINGS_MODEL
  • OPENAI_RERANK_MODEL
  • LLMHELPER_REDIS_STACK_URL

工具集

  • exceptions
    • ParseJsonResponseError
    • ChatError
    • GetTextEmbeddingsError
    • GetRerankScoresError
    • NoneValueError
    • VectorStoreNoneValueError
    • EmbeddingsNoneValueError
    • RerankNoneValueError
  • base
    • get_llmhelper_config
    • set_llmhelper_default_config
    • set_llmhelper_config
    • get_default_llm
    • get_default_chat_model
    • get_default_embeddings_model
    • get_default_rerank_model
    • get_template_engine
    • get_llm_base_url
    • get_llm_api_url
  • template
    • get_template_prompt_by_django_template_engine
    • get_template_prompt_by_jinjia2
    • get_template_prompt
  • llm
    • get_messages
    • parse_json_response
    • chat
    • jsonchat
    • streaming_chat
  • embeddings
    • OpenAIEmbeddings
    • get_text_embeddings
  • rerank
    • get_rerank_scores
  • vectorestores
    • RedisVectorStore

版本记录

v0.1.0

  • 版本首发。

v0.2.0

  • 添加embeddings模型操作支持。
  • 添加rerank模型操作支持。

v0.3.0

  • 添加向量数据库操作支持。

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

llmhelper-0.3.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

llmhelper-0.3.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file llmhelper-0.3.0.tar.gz.

File metadata

  • Download URL: llmhelper-0.3.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for llmhelper-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d1d94708ea435fbe6ecbd8642a45e637d7a83228d87d7a7658bc9f342dbd961d
MD5 26d4a07a606d594ee9862a6a80251eb4
BLAKE2b-256 d324fb05070f436b2e4a6f9fb3797a38dd6d92e911a7d46cc88bd2f5d98c972a

See more details on using hashes here.

File details

Details for the file llmhelper-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: llmhelper-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for llmhelper-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47a9e14d6223e830ee94a588dfd0d74b84313c24b060de86fa437f2cde5c1dcd
MD5 d26a9962e152f75311c16a74d3e89910
BLAKE2b-256 cca1409a670b4bcc84fb5d510bd0d66bc36d545474267b6f9ef2c63e118312b3

See more details on using hashes here.

Supported by

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