Skip to main content

LLM helper library.

Project description

llmhelper

LLM helper library.

安装

pip install llmhelper

工具集

  • exceptions
    • ParseJsonResponseError
    • ChatError
    • GetTextEmbeddingsError
    • GetRerankScoresError
  • 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

版本记录

v0.1.0

  • 版本首发。

v0.2.0

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

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.2.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

llmhelper-0.2.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for llmhelper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ca09f6e1394f2e9ead917d5c9c179c6a62fbaf172af6f514181ebe4e418cb9d9
MD5 f2a38529f40f8c8f271b7d76dfaf2938
BLAKE2b-256 60c2da058a5d9d857e5ebb771eac64922688778d3d451655a4c80603e626c87e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llmhelper-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eb26d4c257a8e7b432234f51d9404957361f8042993c32be703fcd356298697
MD5 bc879b030b114304bc4190017b4785a1
BLAKE2b-256 95fbeacd753d70a78a66072dedf6a76caafd3399af0bc76595a25bd307819967

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