Skip to content

Commit

Permalink
docs: Add code for experiments (#93)
Browse files Browse the repository at this point in the history
* docs: Add code for experiments

These use RAGAS to measure various retrieval configurations on the
history of alexnet dataset.

* ruff
  • Loading branch information
bjchambers authored Feb 28, 2024
1 parent bdbc989 commit e641bd8
Show file tree
Hide file tree
Showing 7 changed files with 2,933 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
__pycache__
.env
.vscode/
/dewy-client/dist
/dewy-client/dist.venv
2 changes: 2 additions & 0 deletions experiments/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
*.sqlite
16 changes: 16 additions & 0 deletions experiments/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Experiments

## RAG Configuration

This experiment plays with some of the standard configuration options available in LangChain.
It runs a variety of extraction, splitting, and retrieval configurations on the AlexNet PDF and Q/A set.

To execute:

```sh
python rag_configuration.py run # --help to see options for filtering configurations

python rag_configuration.py clear # to clear Tru DB
python rag_configuration.py dashboard # to display dashboard
python rag_configuration.py sreve # to serve the browser dashboard
```
Empty file added experiments/__init__.py
Empty file.
2,404 changes: 2,404 additions & 0 deletions experiments/datasets/history_of_alexnet/rag_dataset.json

Large diffs are not rendered by default.

Binary file not shown.
Loading

0 comments on commit e641bd8

Please sign in to comment.