[Docs] Add ruff linting to .ipynb files (#645)

This commit is contained in:
William FH
2024-06-11 18:02:49 -07:00
committed by GitHub
parent 854bf2c295
commit 4eab1739da
67 changed files with 741 additions and 850 deletions
+4
View File
@@ -33,6 +33,7 @@ _MANUAL = {
"tutorials": [
"introduction.ipynb",
"customer-support/customer-support.ipynb",
"tutorials/tnt-llm/tnt-llm.ipynb",
],
}
_MANUAL_INVERSE = {v: docs_dir / k for k, vs in _MANUAL.items() for v in vs}
@@ -113,6 +114,9 @@ def copy_notebooks():
dst_path = os.path.join(
overridden_dir, os.path.relpath(src_path, examples_dir)
)
dst_path = dst_path.replace(
"tutorials/tutorials", "tutorials"
).replace("how-tos/how-tos", "how-tos")
print(f"Overriding: {src_path} to {dst_path}")
break
+4
View File
@@ -55,6 +55,10 @@ Learn from example implementations of graphs designed for specific scenarios and
- [Agent-based](chatbot-simulation-evaluation/agent-simulation-evaluation.ipynb): Evaluating chatbots via simulated user interactions
- [Within LangSmith](chatbot-simulation-evaluation/langsmith-agent-simulation-evaluation.ipynb): Evaluating chatbots in LangSmith over a dialog dataset
#### Text Mining
- [TNT-LLM](tnt-llm/tnt-llm.ipynb): learn to build rich, interpretable taxonomies of user intentand using the classification system developed by Microsoft for their Bing Copilot application.
#### Competitive Programming
- [Can Language Models Solve Olympiad Programming?](usaco/usaco.ipynb): Build an agent with few-shot "episodic memory" and human-in-the-loop collaboration to solve problems from the USA Computing Olympiad; adapted from the [paper of the same name](https://arxiv.org/abs/2404.10952v1) by Shi, Tang, Narasimhan, and Yao.
+2
View File
@@ -129,6 +129,8 @@ nav:
- Chatbot Eval via Sim:
- Agent-based: tutorials/chatbot-simulation-evaluation/agent-simulation-evaluation.ipynb
- In LangSmith: tutorials/chatbot-simulation-evaluation/langsmith-agent-simulation-evaluation.ipynb
- Text Mining:
- TNT-LLM: tutorials/tnt-llm/tnt-llm.ipynb
- Web Navigation: tutorials/web-navigation/web_voyager.ipynb
- Competitive Programming: tutorials/usaco/usaco.ipynb