-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nbsphinx integration and documentation build
- Loading branch information
1 parent
56ca7d5
commit 6effba0
Showing
6 changed files
with
118 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
sphinx==7.1.2 | ||
sphinx-rtd-theme==1.3.0 | ||
sphinx-autodoc-typehints==1.25.2 | ||
sphinx-copybutton==0.5.2 | ||
myst-parser==2.0.0 | ||
nbsphinx==0.9.3 | ||
sphinx-design==0.5.0 | ||
ipython | ||
jupyter | ||
matplotlib | ||
numpy | ||
pandas | ||
scikit-learn | ||
scipy | ||
faiss-cpu | ||
sphinx>=7.1.2 | ||
sphinx-rtd-theme>=1.3.0 | ||
sphinx-autodoc-typehints>=1.25.2 | ||
sphinx-copybutton>=0.5.2 | ||
myst-parser>=2.0.0 | ||
nbsphinx>=0.9.3 | ||
sphinx-design>=0.5.0 | ||
pandoc>=2.3 | ||
ipython>=8.0.0 | ||
jupyter>=1.0.0 | ||
jupyter-client>=8.0.0 | ||
nbconvert>=7.0.0 | ||
matplotlib>=3.7.0 | ||
numpy>=1.24.0 | ||
pandas>=2.0.0 | ||
scikit-learn>=1.3.0 | ||
scipy>=1.10.0 | ||
faiss-cpu>=1.7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Quick Start Guide\n", | ||
"\n", | ||
"This notebook provides a quick introduction to Time Series RAG." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"source": [ | ||
"import numpy as np\n", | ||
"from timeseries_rag.models import TimeSeriesEmbedder\n", | ||
"from timeseries_rag.rag import TimeSeriesRAG, TimeSeriesDocument\n", | ||
"\n", | ||
"# Create sample data\n", | ||
"t = np.linspace(0, 10, 100)\n", | ||
"sine_wave = np.sin(t)\n", | ||
"\n", | ||
"# Initialize components\n", | ||
"embedder = TimeSeriesEmbedder()\n", | ||
"rag = TimeSeriesRAG()" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"## Add Data to RAG System" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"source": [ | ||
"# Generate embedding\n", | ||
"embedding = embedder.embed(sine_wave)\n", | ||
"\n", | ||
"# Create document\n", | ||
"doc = TimeSeriesDocument(\n", | ||
" id=\"sine_1\",\n", | ||
" data=sine_wave,\n", | ||
" metadata={\"type\": \"sine\", \"frequency\": 1.0},\n", | ||
" embedding=embedding\n", | ||
")\n", | ||
"\n", | ||
"# Add to RAG system\n", | ||
"rag.add_document(doc)" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.0" | ||
}, | ||
"nbsphinx": { | ||
"execute": "never" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters