Skip to content

Commit

Permalink
update the poetry and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
raahulrahl committed Mar 8, 2024
1 parent 312e563 commit 9aa488a
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 288 deletions.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,32 @@ The project might have multiple branches: `master`, `development`, etc. which ca

All installation steps go here.

- Installing a particular tool
- Install `poetry` for the dependencies. - `poetry install`

- Set up Embedding Server from [TEI](https://github.com/huggingface/text-embeddings-inference/tree/main)

- Setup for Re-rankers models

```
model=BAAI/bge-large-en-v1.5
revision=refs/pr/5
volume=$PWD/data # share a volume with the Docker container to avoid downloading weights every run
docker run --gpus all -p 8080:80 -v $volume:/data --pull always ghcr.io/huggingface/text-embeddings-inference:1.1 --model-id $model --revision $revision
```

- Using for Text Embeddings

```
model=BAAI/bge-reranker-large
revision=refs/pr/4
volume=$PWD/data # share a volume with the Docker container to avoid downloading weights every run
docker run --gpus all -p 8080:80 -v $volume:/data --pull always ghcr.io/huggingface/text-embeddings-inference:1.1 --model-id $model --revision $revision
```

- Steps to complete it

- Installing another tool

## Running the App
Expand Down
213 changes: 2 additions & 211 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tool.poetry]
name = "search"
version = "0.1.0"
description = "A healthcare search engine"
authors = ["raahul"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Loading

0 comments on commit 9aa488a

Please sign in to comment.