dspy-inspector 🔍 
DSPy program/pipeline inspector widget for Jupyter/VSCode Notebooks. 🔭
Note: DSPy is going through a big refactor at this moment. Updates in the parsing logic are going to be halted in the meantime.
Dark theme is coming soon™.
Install
👉 pip install dspy-inspector
Usage
from dspy_inspector import inspect
class MultiHopRAG(dspy.Module):
def __init__(self, passages_per_hop=3, max_hops=2):
...
def forward(self, question):
...
inspect(MultiHopRAG)
# Or 👇
program = MultiHopRAG()
inspect(program) # Automatically updates
program("How many storeys are in the castle that David Gregory inherited?")
Check an example in the multi_hop_rag.ipynb notebook.
All example notebooks are cached, no calls to LLMs are needed to run them.
Roadmap
This is a personal project I made to better understand what were my DSPy programs actually doing underneath. This extension is currently in BETA, so, expect bugs. For a roadmap on what things must be fixed or done check all the TODOs inside the source code.
Developing
To setup the virtual developing environment, follow these steps:
- Install dependencies:
poetry install - Install tools:
poetry run inv tool.install --include "dev*" - Create kernel:
poetry run python -m ipykernel install --user --name dspy-inspector --display-name "DSPy Inspector" - Select
dspy-inspectorkernel in all notebooks
Run poetry run inv help for further commands and poetry run inv <command> --help for their usage.
Contribute
Feel free to contribute to this project : ) .
License
This project is licensed under the GPL-3.0 License - read the LICENSE file for details.
Metadata
Release files for dspy-inspector 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dspy_inspector-0.7.0.tar.gz | 26.9 kB | Without provenance | Details for dspy_inspector-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dspy_inspector-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for dspy_inspector-0.7.0-py3-none-any.whl |
Total release size: 53.9 kB
Release files / dspy_inspector-0.7.0.tar.gz
| Download URL | dspy_inspector-0.7.0.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bce4b5ff37ec7f0242db99fb99ddda3c2f44ae5ad7aba1a80a575896d6685ca9
|
|
BLAKE2b-256 checksum How to use checksums |
a05cf0eca5a3347932ac00a6b9e1be96282fd013e28ff1152e90a55e744b3857
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
|
Release files / dspy_inspector-0.7.0-py3-none-any.whl
| Download URL | dspy_inspector-0.7.0-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b1ef0922607d158b36726efe007e1b986d831cf179f222a4933638ea6b6eb95
|
|
BLAKE2b-256 checksum How to use checksums |
1bddd83782176590e7e9c2d70ad48dbbd0790f006ae2e024ae5f326b7457c452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure
|
Security for dspy-inspector 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.