Skip to content

Commit

Permalink
Merge pull request #8 from epinzur/esp/cleanup
Browse files Browse the repository at this point in the history
major refactor and cleanup
  • Loading branch information
epinzur authored Jun 7, 2024
2 parents aee88f1 + 406dddf commit bf7bbe8
Show file tree
Hide file tree
Showing 25 changed files with 786 additions and 442 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ cython_debug/
#.idea/

# default dataset download location
data/
datasets/

# database files
*.sqlite
Expand Down
23 changes: 0 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
# Define variables to extract the package name and version from pyproject.toml
PACKAGE_INFO = $(shell python scripts/get_project_info.py)
PACKAGE_NAME = $(shell echo $(PACKAGE_INFO) | awk '{print $$1}')
PACKAGE_VERSION = $(shell echo $(PACKAGE_INFO) | awk '{print $$2}')
WHEEL_FILE = dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-py3-none-any.whl

.PHONY: build uninstall install build_and_reinstall fmt

# Target to build the package using poetry
build:
poetry build

# Target to uninstall the package using pip
uninstall:
pip uninstall -y $(PACKAGE_NAME)

# Target to install the package using pip
install:
pip install -q $(WHEEL_FILE)

# Target to run all steps: build, uninstall, and install
build_and_reinstall: build uninstall install

# Sort imports and format python files
fmt:
isort --profile black .
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ pip install ragulate
## Usage

```sh
usage: ragulate [-h] {download-llamadataset,ingest,query} ...
usage: ragulate [-h] {download,ingest,query,compare} ...

RAGu-late CLI tool.

options:
-h, --help show this help message and exit

commands:
{download-llamadataset,ingest,query}
download-llamadataset
Download a llama-dataset
download Download a dataset
ingest Run an ingest pipeline
query Run an query pipeline
compare Compare results from 2 (or more) recipes
Expand All @@ -33,7 +31,7 @@ commands:
### Download Dataset Example

```
ragulate download-llamadataset BraintrustCodaHelpDesk
ragulate download -k llama BraintrustCodaHelpDesk
```

### Ingest Example
Expand Down
201 changes: 198 additions & 3 deletions poetry.lock

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

23 changes: 13 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,31 @@ description = "A tool for evaluating RAG pipelines"
authors = ["Eric Pinzur <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
packages = [{include = "ragulate/"}]
packages = [{include = "ragulate/*"}]

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
epinzur-trulens-eval = ">=0.30.1b0"
kaleido = "^0.2.1"
llama-index-core = "^0.10.39.post1"
python-dotenv = "^1.0.1"
plotly = "^5.22.0"
kaleido = "0.2.1"
inflection = "^0.5.1"
tqdm = "^4.66.4"
llama-index-core = "^0.10.31"
numpy = ">=1.23.5"
pandas = ">=2.2.2"
plotly = "^5.22.0"
python-dotenv = ">=1.0.0"
tqdm = ">=4.66.1"

[tool.poetry.group.dev.dependencies]
langchain-core = "0.1.52"
langchain-community = "0.0.38"
langchain-openai = "0.1.3"
black = "^24.4.2"
isort = "^5.13.2"
langchain-astradb = "0.3.3"
langchain-community = "0.0.38"
langchain-core = "0.1.52"
langchain-openai = "0.1.3"

[build-system]
requires = ["poetry-core", "setuptools>=42", "wheel", "pip"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
ragulate = "ragulate.cli:main"
ragulate = "ragulate.cli:main"
Loading

0 comments on commit bf7bbe8

Please sign in to comment.