You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update install instructions to use uv sync instead of pip (#169)
* chore(docs): replace pip install with uv sync instructions
* refactor(Makefile): rewrite setup and checks to use uv
* refactor: use uv in dockerfiles
* chore: update readme
* chore: install uv in Dockerfiles
* refactor(ci): install uv in CI workflow
* fix: update mypy version to >=1.17.1 in pyproject.toml and uv.lock
* chore: update pytest ini_options
* chore: update base image to python:3.13.5-slim in Dockerfiles
* refactor: update Dockerfiles to use pre-built uv images
* refactor(ci): simplify uv installation in CI workflow
* fix: update command to run chatbot script in README
* fix: use uv run in post_install script execution
* chore: update dependencies for mcp functionality
* fix: update type hint for ORFS_DIR environment variable to Optional[str]
* fix: update graph type hint to use Optional
* ruff: fix formatting
* feat: use uv in all make targets
---------
Signed-off-by: Palaniappan R <[email protected]>
Modify the Docker `HEALTHCHECK_` variables based on the hardware requirements.
42
43
If you have a resource-constrained PC, try increasing `HEALTHCHECK_START_PERIOD` to a value large
43
-
enough before healthcheck begins.
44
+
enough before healthcheck begins.
44
45
For more information, please refer to this [link](https://docs.docker.com/reference/compose-file/services/#healthcheck)
45
46
46
47
```bash
@@ -57,16 +58,17 @@ make docker-down
57
58
58
59
#### Option 2 - Local Install
59
60
60
-
Prerequisites:
61
-
-`Python 3.12`, recommended using a virtual environment like `conda`.
62
-
-`wget`
63
-
-`pandoc`
61
+
### Prerequisites
62
+
63
+
-[`uv`](https://docs.astral.sh/uv/) (for managing Python, virtual environments, and dependencies)
64
+
-`wget`
65
+
-`pandoc`
64
66
-`git`
65
67
66
68
**Step 1**: Install the required dependencies.
67
69
68
-
```bash
69
-
pip install -r backend/requirements.txt
70
+
```bash
71
+
uv sync
70
72
```
71
73
72
74
**Step 2**: Copy the `.env.example` file, and update your `.env` file with the appropriate API keys.
@@ -98,7 +100,7 @@ python main.py
98
100
python chatbot.py
99
101
```
100
102
101
-
The backend will then be hosted at [http://0.0.0.0:8000](http://0.0.0.0:8000).
103
+
The backend will then be hosted at [http://0.0.0.0:8000](http://0.0.0.0:8000).
102
104
103
105
Open [http://0.0.0.0:8000/docs](http://0.0.0.0:8000/docs) for the API docs.
104
106
@@ -127,7 +129,7 @@ streamlit run streamlit_app.py
127
129
128
130
## Architecture Overview
129
131
130
-
OpenROAD documentation, OpenROAD-flow-scripts documentation, manpages and OpenSTA documentation is chunked and embedded into FAISS Vector Databases.
132
+
OpenROAD documentation, OpenROAD-flow-scripts documentation, manpages and OpenSTA documentation is chunked and embedded into FAISS Vector Databases.
131
133
132
134
Documents are first retrieved from the vectorstore using a hybrid retriever, combining vector and semantic search methods. These retrieved documents undergo re-ranking using a cross-encoder re-ranker model.
133
135
@@ -145,9 +147,10 @@ flowchart LR
145
147
146
148
id5([Reranking]) ---> id6(top-n docs)
147
149
148
-
```
150
+
```
149
151
150
152
Depending on the input query, each query can be forwarded to any one of the following retrievers,
153
+
151
154
1. General OR/ORFS information
152
155
2. OR tools and commands
153
156
3. OR/ORFS installation
@@ -195,7 +198,7 @@ make check
195
198
196
199
## Acknowledgements
197
200
198
-
This work is completed as part of the Google Summer of Code 2024 project under the
201
+
This work is completed as part of the Google Summer of Code 2024 project under the
199
202
[UCSC Open-Source Program Office](https://ucsc-ospo.github.io/osre24/).
200
203
Please see their contributions at this [link](https://github.com/The-OpenROAD-Project/ORAssistant/wiki/Google-Summer-of-Code-2024).
0 commit comments