Skip to main content

LLAMPHouse OpenAI Assistant Server

Project description

[!NOTE]
This package is still under development. Always use the latest version for better stability.

Contributors Forks Stargazers Issues Unlicense License LinkedIn


Logo

LLAMPHouse

Serving Your LLM Apps, Scalable and Reliable.
Explore the docs »

· Report Bug · Request Feature

Introduction

Building LLM-powered applications is easier than ever, with countless frameworks helping you craft intelligent workflows in Python. But when it’s time to deploy at scale, the challenges begin.

Most tutorials suggest spinning up a FastAPI server with an endpoint — but what happens when scalability and reliability becomes critical?

That’s where LLAMPHouse comes in.

LLAMPHouse provides a self-hosted, production-ready server that mimics OpenAI’s Assistant API while giving you full control over execution. Whether you're using LangChain, LlamaIndex, or your own custom framework, LLAMPHouse lets you deploy, scale, and customize your LLM apps—without sacrificing flexibility.

assistant API

Take control of your LLM infrastructure and build AI-powered apps on your own terms with LLAMPHouse. 🚀

Getting Started

pip install llamphouse

Set the database URL in the environment variable:

DATABASE_URL="postgresql://postgres:password@localhost/llamphouse"

Usage

For examples, please refer to the Examples

Development

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

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

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

License

See LICENSE for more information.

Contact

Project Admin: Pieter van der Deen - email

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.7.tar.gz (1.0 MB 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.7-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llamphouse-0.0.7.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for llamphouse-0.0.7.tar.gz
Algorithm Hash digest
SHA256 78f636318ea0691280ab7aa9dcf2eb41ad7dd77ed98e35dedc2278000c70bf95
MD5 0b7f60d580994462adf48f1ee36bdafd
BLAKE2b-256 19597f45386e22def158a54275e3d618c1f4b5141d9d70d54a6aca8d1540828c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for llamphouse-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9552b96d58db83441326e0fc1f24a4f6e04eb30f8f231413aea33585d2f80b9b
MD5 95d83d6df555a6e302cdd96a5c4a2edd
BLAKE2b-256 929a2f356b66ece140a6e1467f949876850de2795f916486df75d465d2062c7a

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