https://github.com/centre-for-humanities-computing/lex-llm
The orchestrator for the Lex LLM
https://github.com/centre-for-humanities-computing/lex-llm
Last synced: 4 months ago
JSON representation
The orchestrator for the Lex LLM
- Host: GitHub
- URL: https://github.com/centre-for-humanities-computing/lex-llm
- Owner: centre-for-humanities-computing
- License: mit
- Created: 2025-05-05T10:52:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-04T14:36:53.000Z (5 months ago)
- Last Synced: 2026-02-05T01:42:24.431Z (5 months ago)
- Language: Python
- Size: 401 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Lex LLM
The orchestrator for the Lex LLM
## Repositories
This project is a part of the Lex project, and consist of multiple repositories.
| Name | Description |
| --------- | --------------------------- |
| [lex-llm] | The python code for Lex LLM |
| [lex-ui] | The front end for Lex |
| [lex-db] | The database for Lex LLM |
[lex-llm]: https://github.com/centre-for-humanities-computing/lex-llm
[lex-ui]: https://github.com/centre-for-humanities-computing/lex-llm-ui
[lex-db]: https://github.com/centre-for-humanities-computing/lex-db
## Communication with LexDB
This project communicates with LexDB through an auto-generated [OpenAPI](https://learn.openapis.org) client, providing a robust interface for database operations.
### For Developers
- The OpenAPI client can be generated with the `make generate-api` command (which is also called for `make pr`)
- When generated, the OpenAPI client is located in `build/lex_db_client`
- Main operations supported:
- Retrieving available tables
- Full-text search across documents
- Vector-based semantic search using embeddings
- Example usage can be found in `src/examples/lex_db_search_example.py`
Example configuration:
```python
from lex_db_api.configuration import Configuration
from lex_db_api.api.lex_db_api import LexDbApi
from lex_db_api.api_client import ApiClient
api_host = "http://0.0.0.0:8000" # Configure your LexDB host
api_client = ApiClient(configuration=Configuration(host=api_host))
api = LexDbApi(api_client=api_client)
```
### For Users
The LexDB integration enables:
- Fast full-text search across all stored documents
- Semantic search using vector embeddings
- Access to structured document metadata and content
The database connection is automatically handled by the application, requiring no additional setup from end users.