LLAMPHouse OpenAI Assistant Server
Project description
[!NOTE] This package is still under development. Always use the latest version for better stability.
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.
Take control of your LLM infrastructure and build AI-powered apps on your own terms with LLAMPHouse. 🚀
Getting Started
Requires Python 3.10+.
pip install llamphouse
LLAMPHouse uses an in-memory data store by default (no database required). To enable Postgres, set:
DATABASE_URL="postgresql://postgres:password@localhost/llamphouse"
Usage
LLAMPHouse supports pluggable backends:
- data_store: in_memory (default) or postgres
- event queue: in_memory or janus
Streaming adapters are available for OpenAI, Gemini, and Anthropic. See Examples for full runnable samples.
Development
Local
- Clone the repository
- Install the library
pip install .
Build
This is only required if you want to push the package to PyPI.
python setup.py sdist bdist_wheelgit tag -a v1.0.0 -m "Release version 1.0.0"git push
Testing
-
Install the package locally.
-
Run tests:
python -m pytest tests/unit tests/contract tests/integration
-
Optional Postgres tests:
-
set
DATABASE_URLand run:python -m pytest -m postgres
-
Database (Postgres only)
Use Alembic when running the postgres data_store:
-
docker run --rm -d --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -p 5432:5432 postgres
-
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 codeDelete-> 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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Top contributors:
License
See LICENSE for more information.
Contact
Project Admin: Pieter van der Deen - email
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llamphouse-1.0.1.tar.gz.
File metadata
- Download URL: llamphouse-1.0.1.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a72c8cde4fe084ed25ac23f3f9c3256a2ebc7037c8c8c6824eb6bd1c98bc3ed6
|
|
| MD5 |
8db3cb388b107232a3a4571e40af97d3
|
|
| BLAKE2b-256 |
1aeb3cdf1c255444b890bb76517182bdcf5676eaee3e0edbaf449526ada5acd1
|
File details
Details for the file llamphouse-1.0.1-py3-none-any.whl.
File metadata
- Download URL: llamphouse-1.0.1-py3-none-any.whl
- Upload date:
- Size: 61.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b3bf0ec5b93c2d0534d49937b1c765bcc5d80c64aa7a761de55397c9f4f627
|
|
| MD5 |
2962b7d0c92f9f26b7260f746a58a066
|
|
| BLAKE2b-256 |
5a211804f06481ff9e8f48d6a3bcba9862d2f9a4f2a9365ba0fbf430d0b6131c
|