Skip to main content

Core Neon LLM service

Project description

NeonAI Core LLM

Core module for Neon LLM's

Request Format

API requests should include history, a list of tuples of strings, and the current query

Example Request:

{
 "history": [["user", "hello"], ["llm", "hi"]],
 "query": "how are you?"
}

Response Format

Responses will be returned as dictionaries. Responses should contain the following:

  • response - String LLM response to the query

Connection Configuration

When running this as a docker container, the XDG_CONFIG_HOME envvar is set to /config. A configuration file at /config/neon/diana.yaml is required and should look like:

MQ:
  port: <MQ Port>
  server: <MQ Hostname or IP>
  users:
    <LLM MQ service_name>:
      user: <MQ user>
      password: <MQ user's password>
  LLM_<LLM NAME uppercase>:
    num_parallel_processes: <integer > 0>

Enabling Chatbot personas

An LLM may be configured to connect to a /chatbots vhost and participate in discussions as described in the chatbots project. One LLM may define multiple personas to participate as:

llm_bots:
  <LLM Name>:
    - name: Assistant
      description: You are a personal assistant who responds in 40 words or less
    - name: Author
      description: You are an author and expert in literary history
    - name: Student
      description: You are a graduate student working in the field of artificial intelligence
      enabled: False

LLM Name is defined in the property NeonLLMMQConnector.name

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

neon-llm-core-0.1.1a6.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

neon_llm_core-0.1.1a6-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file neon-llm-core-0.1.1a6.tar.gz.

File metadata

  • Download URL: neon-llm-core-0.1.1a6.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for neon-llm-core-0.1.1a6.tar.gz
Algorithm Hash digest
SHA256 54e2e14a5a580b4ddb1640586b8611c655f5cf555ce4491d456c81ede138ae40
MD5 e992be309de6e714cadf62ae09325016
BLAKE2b-256 9c9e9a0a778737f6a47602dc567498903c0fc8a2463343a69efa2ecc7fab67ba

See more details on using hashes here.

File details

Details for the file neon_llm_core-0.1.1a6-py3-none-any.whl.

File metadata

File hashes

Hashes for neon_llm_core-0.1.1a6-py3-none-any.whl
Algorithm Hash digest
SHA256 de2a41072d3e498e105a75eb66e6fb2457fa57114b8f1d9b8f9607ac3d8b31ed
MD5 95a96e2b4eda7dfd020d7fdd5fd9f118
BLAKE2b-256 3845d2295d8399dd12d06bbdefb28b5c0c378adb0a4f818cd998d5132f57c9fe

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