2024-06-27 13:51:01 +03:00
|
|
|
# quivr-core package
|
2024-07-09 19:28:27 +03:00
|
|
|
|
2024-07-09 19:39:01 +03:00
|
|
|
The RAG of Quivr.com
|
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
## Contributors
|
|
|
|
|
|
|
|
### Requirements
|
|
|
|
|
|
|
|
0. Install [poetry](https://python-poetry.org/docs/). Recommand the `pipx` install
|
|
|
|
1. (Optional) Install (`uv`)[https://github.com/astral-sh/uv]
|
|
|
|
2. git clone `quivr`
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone git@github.com:QuivrHQ/quivr.git
|
|
|
|
cd quivr/backend/core
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Create virtual environement with your preferred tool
|
|
|
|
|
|
|
|
```
|
|
|
|
uv venv
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Install `base` quivr-core environment
|
|
|
|
|
|
|
|
```
|
|
|
|
poetry install -E base --with dev,test
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Install pre-commit
|
|
|
|
|
|
|
|
```
|
|
|
|
pre-commit install
|
|
|
|
```
|
|
|
|
|
|
|
|
5. Run example
|
|
|
|
```
|
|
|
|
python examples/simple_question.py
|
|
|
|
```
|
|
|
|
|
|
|
|
## Backend
|
|
|
|
|
|
|
|
0. Install [poetry](https://python-poetry.org/docs/). Recommand the `pipx` install
|
|
|
|
1. (Optional) Install (`uv`)[https://github.com/astral-sh/uv]
|
|
|
|
2. Clone `quivr`
|
|
|
|
|
2024-07-09 19:28:27 +03:00
|
|
|
```
|
2024-09-02 11:20:53 +03:00
|
|
|
cd quivr/backend/
|
2024-07-09 19:28:27 +03:00
|
|
|
```
|
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
2. Create virtual environement with your preferred tool
|
|
|
|
|
|
|
|
```
|
|
|
|
uv venv
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Install quivr-core monorepo
|
|
|
|
|
|
|
|
```
|
|
|
|
poetry install
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Copy `.env.example` to `.env` and modify env variables : step 2 : (https://docs.quivr.app/install#60-seconds-installation)
|
|
|
|
|
|
|
|
5. Run backend-api
|
|
|
|
|
|
|
|
```
|
|
|
|
LOG_LEVEL=debug uvicorn quivr_api.main:app --log-level debug --reload --host 0.0.0.0 --port 5050 --workers 1
|
2024-07-09 19:28:27 +03:00
|
|
|
```
|