Skip to main content

LLAMPHouse OpenAI Assistant Server

Project description

Introduction

LLAMPHouse core Python package.

This packages creates a server that mimics the OpenAI Assistant behavior. However, you can fully customize the run behavior yourself.

Included API endpoints

  • Assistants
    • Create -> created in code
    • List
    • Retrieve
    • Modify -> only in code
    • Delete -> only in code
  • Threads
    • Create
    • Retrieve
    • Modify
    • Delete
  • Messages
    • Create
    • List
    • Retrieve
    • Modify
    • Delete
  • Runs
    • Create
    • Create thread and run
    • List
    • Retrieve
    • Modify
    • Submit tool outputs
    • Cancel
  • Run steps
    • List
    • Retrieve
  • Vector stores
    • Create -> depends on implementation
    • List
    • Retrieve
    • Modify
    • Delete -> depends on implementation
  • Vector store files
    • Create
    • List
    • Retrieve
    • Delete
  • Vector store file batches
    • Create
    • Retrieve
    • Cancel
    • List
  • Streaming
    • Message delta
    • Run step object
    • Assistant stream

Installation

Local

  1. Clone the repository
  2. Install the library pip install .

Build

This is only required if you want to push the package to PyPi.

  1. python setup.py sdist bdist_wheel
  2. git tag -a v1.0.0 -m "Release version 1.0.0"
  3. git push

Testing

  1. Build/Install the latest solution locally
  2. Run the test: pytest

Database

To run a local database:

  1. docker run --rm -d --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -p 5432:5432 postgres
  2. docker exec -it postgres psql -U postgres -c 'CREATE DATABASE llamphouse;'

To create a new database revision: alembic revision --autogenerate -m "Added account table"

To upgrade the database with the latest revision: alembic upgrade head

To downgrade back to the base version: alembic downgrade base

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

llamphouse-0.0.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

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

llamphouse-0.0.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file llamphouse-0.0.2.tar.gz.

File metadata

  • Download URL: llamphouse-0.0.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for llamphouse-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1d2f55f55c54badc6b860f8c1c1887591d0a11b859e6e8fcb1840a1492c5dda5
MD5 9b04696a990074a67f99d708bc9f172e
BLAKE2b-256 bfda387348967659fe3d3a5cd1a83a138454b087ca1a4b0d2ab0005725ae0a18

See more details on using hashes here.

File details

Details for the file llamphouse-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: llamphouse-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for llamphouse-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64fc10f3eaa11a175debb8aaceffbf8a18c799cc02d5149fdbde019f0f7f1eb9
MD5 cbf993799d52de7002a731598da4cad4
BLAKE2b-256 27d7b6d3300b35704d4450d92629c98cffd3ba870eb91837b16d8629656d716d

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