Skip to content

Commit

Permalink
Add notebooks (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: lmartinfuertes <[email protected]>
  • Loading branch information
nimbusaeta and lmartinfuertes authored Mar 25, 2024
1 parent fdb936f commit cf415c9
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.napoleon',
'nbsphinx',
]

templates_path = ['_templates']
Expand Down
11 changes: 11 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ Promptmeteo is a Python library for prompt engineering built over LangChain. It
:caption: Classes

classes


.. toctree::
:maxdepth: 1
:caption: Example notebooks

notebooks/01_promptmeteo_usage
notebooks/03_sentiment_analysis.ipynb
notebooks/04_test_flant5_classification_prompts.ipynb
notebooks/05_test_openai_classification_prompts.ipynb
notebooks/06_test_openai_api-generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "b559000b-5af7-49ed-8e0a-c9c4765167f0",
"metadata": {},
"source": [
"# Promptmteo Usage - Save and Load Model"
"# Promptmeteo Usage - Save and Load Model"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "9c5befb6-f95f-45f7-872d-6d5d62370880",
"metadata": {},
"source": [
"# Model tuning - Promptmeteo configuration"
"# Model Tuning - Promptmeteo Configuration"
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "73d808a5-a4dd-4ec5-b4bc-438f1dd5596f",
"metadata": {},
"source": [
"# Sentiment analysis."
"# Sentiment Analysis"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "73d808a5-a4dd-4ec5-b4bc-438f1dd5596f",
"metadata": {},
"source": [
"# Flan-t5-Small Test classification prompts."
"# Flan-t5-Small - Test Classification Prompts"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "73d808a5-a4dd-4ec5-b4bc-438f1dd5596f",
"metadata": {},
"source": [
"# OpenAI test classification prompts."
"# OpenAI - Test Classification Prompts"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "73d808a5-a4dd-4ec5-b4bc-438f1dd5596f",
"metadata": {},
"source": [
"# OpenAI test API generation."
"# OpenAI - Test API Generation"
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ docs = [
"furo==2024.1.29",
"numpydoc==1.6.0",
"sphinxcontrib-napoleon==0.7",
"pandoc==2.3",
"nbsphinx==0.9.3",
]
openai = [
"openai==0.27.8",
Expand Down

0 comments on commit cf415c9

Please sign in to comment.