Skip to content

Commit

Permalink
Revert "Add Notebooks to Docs/Sphinx (run-llama#1039)" (run-llama#1040)
Browse files Browse the repository at this point in the history
This reverts commit 684cdbc.
  • Loading branch information
jerryjliu authored Apr 4, 2023
1 parent 0f11943 commit c811e2d
Show file tree
Hide file tree
Showing 118 changed files with 9,223 additions and 9,684 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/dev_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: cpina/github-action-push-to-another-repository@main
- uses: awalsh128/cache-apt-pkgs-action@latest
env:
API_TOKEN_GITHUB: ${{ secrets.PAT}}
with:
packages: pandoc
source-directory: './docs'
destination-github-username: 'avb-is-me'
destination-repository-name: 'gpt_index'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ target/

# Jupyter Notebook
.ipynb_checkpoints
notebooks/

# IPython
profile_default/
Expand Down Expand Up @@ -137,4 +138,4 @@ dmypy.json

# Jetbrains
.idea
modules/
modules/
1 change: 0 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
python ./build_notebooks.py
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
27 changes: 0 additions & 27 deletions docs/build_notebooks.py

This file was deleted.

8 changes: 1 addition & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
"sphinx_rtd_theme",
"sphinx.ext.mathjax",
"myst_parser",
"nbsphinx",
"nbsphinx_link",
]

myst_heading_anchors = 4
Expand All @@ -47,15 +45,11 @@
suppress_warnings = ["myst.header"]

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]

# nbsphinx options
nbsphinx_execute = "never"
nbsphinx_allow_errors = True
171 changes: 1 addition & 170 deletions docs/guides/notebooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,173 +3,4 @@ Notebooks

We offer a wide variety of example notebooks. They are referenced throughout the documentation.

All examples can be accessed using the menu links or can be found `directly in the repository`_.

.. _directly in the repository: https://github.com/jerryjliu/llama_index/tree/main/examples

.. toctree::
:glob:
:maxdepth: 1
:caption: Async

./notebooks/async/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Azure

notebooks/azure_demo/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Chatbot

notebooks/chatbot/*


.. toctree::
:glob:
:maxdepth: 1
:caption: ChatGPT Plugin

notebooks/chatgpt_plugin/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Composable Indices

notebooks/composable_indices/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Cost Analysis

notebooks/cost_analysis/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Data Connectors

notebooks/data_connectors/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Docstore

notebooks/docstore/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Evaluation

notebooks/evaluation/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Gastby

notebooks/gatsby/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Knowledge Graph

notebooks/knowledge_graph/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Langchain Integration

notebooks/langchain_demo/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Multimodal

notebooks/multimodal/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Node Post-Processor

notebooks/node_postprocessor/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Optimizer

notebooks/optimizer/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Paul Graham Essay

notebooks/paul_graham_essay/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Playground

notebooks/playground/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Query Transformations

notebooks/query_transformations/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Structured Indices

notebooks/struct_indices/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Wikipedia

notebooks/test_wiki/*


.. toctree::
:glob:
:maxdepth: 1
:caption: Vector Indices

notebooks/vector_indices/*
Example notebooks are found `here <https://github.com/jerryjliu/gpt_index/tree/main/examples>`_.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/async/AsyncGPTTreeIndexDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/async/AsyncLLMPredictorDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/async/AsyncQueryDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/azure_demo/AzureOpenAI.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/chatbot/Chatbot_SEC.nblink

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/cost_analysis/TokenPredictor.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/ChromaDemo.nblink

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/DiscordDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/FaissDemo.nblink

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/MakeDemo.nblink

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/MongoDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/NotionDemo.nblink

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/PineconeDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/QdrantDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/SlackDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/TwitterDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/WeaviateDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/data_connectors/WebPageDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/docstore/DocstoreDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/evaluation/GuardrailsDemo.nblink

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/evaluation/TestNYC-Evaluation.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/gatsby/TestGatsby.nblink

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/langchain_demo/LangchainDemo.nblink

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/multimodal/Multimodal.nblink

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/optimizer/OptimizerDemo.nblink

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion docs/guides/notebooks/paul_graham_essay/InsertDemo.nblink

This file was deleted.

This file was deleted.

Loading

0 comments on commit c811e2d

Please sign in to comment.