Skip to main content

Interact with Large Language Models.

Project description

cmem-plugin-llm

Interact with Large Language Models.

eccenca Corporate Memory

This is a plugin for eccenca Corporate Memory. You can install it with the cmemc command line clients like this:

cmemc admin workspace python install cmem-plugin-llm

poetry ruff mypy copier

Create Embedding

This plugin contain the following capabilitities:

  • create embeddings: it allows to create embeddings from an arbitrary data point or from specified data point paths (properties/columns). After being processed each data point receive two additional paths the _embedding path and the _embedding_source path.
    • The _embedding path contain the generated embedding.
    • The _embedding_source path contain the paths utilized for generate the embeddings in text format.

Parameters

  • url: openAI compatible endpoint, default https://api.openai.com/v1
  • model: embedding model, default text-embedding-3-small
  • api_key: api key of the endpoint, default blank
  • timout_single_request: the request timenout in milliseconds, default 10000
  • entries_processing_buffer: number of processed entries per request, default 1000
  • embedding_paths: specify which paths should be used for embedding generation, default all
  • embedding_output_text: output path that will contain the embedding text, default _embedding_source
  • embedding_output_path: output path that will contain the generated embedding, default _embedding

Execute Instruction

This plugin contain the following capabilitities:

  • execute instruction: it allows to execute an LLM instruction over a given list of entities. After being processed each entity receive one additional path, the _instruction_output.
    • The _instruction_output path contains the output of the executed instruction over the entitiy.

Parameters

  • url: openAI compatible endpoint, default https://api.openai.com/v1
  • model: embedding model, default gpt-o
  • api_key: api key of the endpoint, default blank
  • timout_single_request: the request timenout in milliseconds, default 10000
  • instruction_template: the instruction template default instruct template: Write a paragraph about this entity: ${entity}
  • prompt_template: the prompt template default prompt template:
                [{
                    "role": "developer",
                    "content": "You are a helpful assistant."
                },
                {
                    "role": "user",
                    "content": "${instruct}"
                }]
    
  • instruct_output_path: output path that will contain the output of the executed instruction, default _instruction_output

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

cmem_plugin_llm-0.6.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

cmem_plugin_llm-0.6.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file cmem_plugin_llm-0.6.0.tar.gz.

File metadata

  • Download URL: cmem_plugin_llm-0.6.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.9 Darwin/24.3.0

File hashes

Hashes for cmem_plugin_llm-0.6.0.tar.gz
Algorithm Hash digest
SHA256 9040e63d4974260f5422777b2564fe36f4c3aff3ff309f0154c2d98315ea0af9
MD5 64e95b8db64f261d6f136a330dfbfb77
BLAKE2b-256 759b044fed67b9dcf87480e2ea3a3cbf7e548a5f394df67f77825f793ae72e31

See more details on using hashes here.

File details

Details for the file cmem_plugin_llm-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: cmem_plugin_llm-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.9 Darwin/24.3.0

File hashes

Hashes for cmem_plugin_llm-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b79b42b8ef9cc01692f4f252a71784e5903efe886801802244b4ec6c69f03cbf
MD5 c0929968adf15f3a878fa48ab462b85f
BLAKE2b-256 57496acaa35dc08722f2154a02b36da3255fd8352c47960cdd1c833581ed165e

See more details on using hashes here.

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