Data pipelines for AI applications.
Project description
Lexy
Welcome to Lexy!
Development
Clone the repo
git clone https://github.com/lexy-ai/lexy.git
Install dependencies
Lexy requires Python 3.11 or greater. You can check your Python version by running python3 --version
.
First create a virtual environment and install the dependencies.
# Change to the lexy directory
cd lexy
# Create a virtualenv
python3 -m venv venv
source venv/bin/activate
Then run the following to install the dev dependencies and build your docker containers.
# Install dev dependencies
make install-dev
# Build docker containers
make build-dev
Where to find services
Service | URL | Notes |
---|---|---|
Lexy API | http://localhost:9900/docs | Swagger API docs |
Flower | http://localhost:5556 | Celery task monitor |
RabbitMQ | http://localhost:15672 | Username: guest , Password: guest |
Postgres | http://localhost:5432 | Database: lexy , Username: postgres , Password: postgres |
Project docs | http://localhost:8000 | Run make serve-docs Username: lexy , Password: guest |
Configuring AWS
In order to upload and store files to Lexy, you'll need to configure AWS. You can use aws configure
(recommended) or
put AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
in your .env
file.
You'll also need to specify an S3 bucket for file storage (for which your AWS credentials should have full access).
You can do so by adding DEFAULT_STORAGE_BUCKET=<name-of-your-S3-bucket>
to your .env
file. Remember to rebuild your
dev containers for the change to take effect (run make rebuild-dev-containers
on the command line).
Using OpenAI transformers
To use OpenAI embeddings in Lexy, you'll need to set the OPENAI_API_KEY
environment variable. You can do so by adding
the following to your .env
file:
OPENAI_API_KEY=<your-openai-api-key>
Do this before building your docker containers. Or, if you've already run docker compose up
, you can run the
following to rebuild the server and worker containers.
# Rebuild the server and worker containers
make rebuild-dev-containers
Run the Dashboard
Lexy comes with a built-in dashboard to visualize pipelines. See the dashboard README for more details.
To start the dashboard, run:
cd dashboard
npm install
npm run dev
PyCharm issues
If your virtualenv keeps getting bjorked by PyCharm, make sure that you're following the instructions above verbatim,
and using venv
instead of .venv
for the path of your virtual environment.
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
File details
Details for the file lexy-0.0.2.tar.gz
.
File metadata
- Download URL: lexy-0.0.2.tar.gz
- Upload date:
- Size: 62.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42193433d9379a4bb93b9f219eb27989c1798019eff87fafeebf72ba5ae0e005 |
|
MD5 | 8118fff7314c758bb9d0a279cfbfa282 |
|
BLAKE2b-256 | 6521249e29526f274430f7d12ad01f9b94107f628381aa55fb50b667ef87c988 |
File details
Details for the file lexy-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: lexy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 86.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f24675b8742137523ebac9614a94759790b06ca689d1c43943e6e5b80d9febd |
|
MD5 | 05239b8db891d8d03f0e1cc98abe88e6 |
|
BLAKE2b-256 | 2ac03a975dc22e6bc00d5f71eb20c5eb9bb3a99946749ede4266e638ea23b425 |