Comments (1)
đ Here's the PR! #30
b87b20c9e4
)Actions (click)
- âť Restart Sweep
Sandbox Execution â
Here are the sandbox execution logs prior to making any changes:
Sandbox logs for 232b421
Checking docs/README.rst for syntax errors... â docs/README.rst has no syntax errors!
1/1 âChecking docs/README.rst for syntax errors... â docs/README.rst has no syntax errors!
Sandbox passed on the latest main
, so sandbox checks will be enabled for this issue.
Step 1: đ Searching
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description.
Lines 12 to 498 in 232b421
Step 2: â¨ď¸ Coding
Modify docs/README.rst with contents: 1. Start by removing all the HTML tags present in the file. This includes tags like ``, ``, ``, `
`, ``, etc. Replace them with the equivalent reStructuredText syntax if necessary. For example, replace `text` with `text `_.
Check for any markdown syntax that might have been left behind during the conversion and replace it with the equivalent reStructuredText syntax. For example, replace markdown-style links
[text](url)
with reStructuredText-style linkstext <url>
_.Revise the sections after 3b) for any syntax issues. Ensure that all code blocks, links, lists, and other elements are correctly formatted according to reStructuredText syntax.
The documentation section is no longer necessary. Update this section to reflect the current state of the project. Remove any outdated information and add any new information that is relevant.
After all the changes, ensure that the file is syntactically correct and can be properly rendered as reStructuredText. You can use a tool like Sphinx to build the documentation and check for any errors or warnings.
--- +++ @@ -12,7 +12,7 @@ .. raw:: html - + `DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines `__ .. image:: https://colab.research.google.com/assets/colab-badge.svg :align: center Paper: `DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines `__ @@ -107,7 +107,7 @@ system for question answering. You can define your own ``RAG`` program like this: -.. code:: python +.. code-block:: python class RAG(dspy.Module): def __init__(self, num_passages=3): @@ -199,7 +199,7 @@ In the ``RAG`` class earlier, we saw: -.. code:: python +.. code-block:: python self.generate_answer = dspy.ChainOfThought("context, question -> answer") @@ -249,7 +249,7 @@ support your pipeline. If you change your pipeline in any way, the data bootstrapped will change accordingly! -.. code:: python +.. code-block:: python my_rag_trainset = [ dspy.Example( @@ -263,7 +263,7 @@ constraints on the behavior of your program or individual modules. For ``RAG``, we might express a simple check like this: -.. code:: python +.. code-block:: python def validate_context_and_answer(example, pred, trace=None): # check the gold label and the predicted answer are the same @@ -292,7 +292,15 @@ with few-shot demonstrations of chain-of-thought retrieval-augmented question answering on our data. -4) Documentation & Tutorials +4) Updating Documentation +------------------------ + +Please refer to our updated `Getting Started Guide `__ and `API Reference `__ for the most current information. + +Explore our new interactive tutorials to learn how to leverage DSPy for your projects: + +- `Basic Concepts Tutorial `__ +- `Advanced Usage Tutorial `__ ============================ 5) FAQ: Is DSPy right for me? @@ -309,13 +317,10 @@ .. _section-3: -- - -+ .. _section-4: @@ -358,10 +363,7 @@- - -
+ + + +**5.a) DSPy vs. thin wrappers for prompts (OpenAI API, MiniChain, basic templating)** [5.a] DSPy vs. thin wrappers for prompts (OpenAI API, MiniChain, basic templating) @@ -350,7 +355,7 @@ strings at the core of your project anymore. -
-- - -
+**5.b) DSPy vs. application development libraries like LangChain, LlamaIndex** [5.b] DSPy vs. application development libraries like LangChain, LlamaIndex @@ -428,10 +430,7 @@
-- - -
+**5.c) DSPy vs. generation control libraries like Guidance, LMQL, RELM, Outlines** [5.c] DSPy vs. generation control libraries like Guidance, LMQL, RELM, Outlines @@ -488,7 +487,7 @@ If you use DSPy or DSP in a research paper, please cite our work as follows: -:: +.. code-block:: bibtex @article{khattab2023dspy, title={DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines},
- Running GitHub Actions for
docs/README.rst
â Edit
Check docs/README.rst with contents:Ran GitHub Actions for a18ce01c3c951f35871c466469a399eeb2ea4883:
Step 3: đ Code Review
I have finished reviewing the code for completeness. I did not find errors for sweep/revise_docsreadmerst_for_leftover_html_t
.
đ Latest improvements to Sweep:
- We just released a dashboard to track Sweep's progress on your issue in real-time, showing every stage of the process â from search to planning and coding.
- Sweep uses OpenAI's latest Assistant API to plan code changes and modify code! This is 3x faster and significantly more reliable as it allows Sweep to edit code and validate the changes in tight iterations, the same way as a human would.
- Try using the GitHub issues extension to create Sweep issues directly from your editor! GitHub Issues and Pull Requests.
đĄ To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.
Join Our Discord
from dspy.
Related Issues (20)
- Sweep: Overhaul Documentation HOT 1
- Sweep: Update cloned documentation from llama-index to document DSPy HOT 1
- Sweep: Ensure `datasets` in the `dspy/` folder has documentation. HOT 1
- Sweep: Ensure `evaluate` in the `dspy/` folder has documentation. HOT 1
- Sweep: Ensure `predict` in the `dspy/` folder has documentation. HOT 1
- Sweep: Ensure `retrieve` in the `dspy/` folder has comprehensive documentation. HOT 1
- Sweep: Ensure `signatures` in the `dspy/` folder has documentation. HOT 1
- Sweep: Update `teleprompt` documentation HOT 1
- Sweep: Add documentation for `Assertions`, in `dspy/assert`. HOT 1
- Sweep: Add docstrings for all classes and functions in `dspy/*` HOT 1
- Sweep: Add useful docstrings for all classes and functions in `dspy/primitives/*.py`. HOT 1
- Sweep: Add docstrings to `signature`. HOT 1
- Sweep: `Signature` prompt skeleton HOT 1
- Sweep: Set up tests for all OpenAI content for a migration to the 1.0 upgrade HOT 1
- Sweep: Set up tests for all OpenAI content for a migration to the 1.0 upgrade HOT 1
- Sweep: Fix the Documentation links. Yeah
- Sweep: Test
- Sweep: Test
- Sweep: Make the getting_started portion of documentation more organized HOT 1
- Addressing Context Length Limitations in DSPy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dspy.