darinkishore / dspy

Stanford DSPy: The framework for programming with foundation models
MIT License
0 stars 0 forks source link

Sweep: Add documentation for `Assertions`, in `dspy/assert`. #52

Closed darinkishore closed 9 months ago

darinkishore commented 9 months ago

Details

Assertions were very recently added, but not really documented.

Please be thorough, search the whole repository, and figure out what assertions are, how to use them, what they do, the exact syntax, every case in which they can be used, and document all of it.

This documentation should be in a subfolder of docs/primitives/

Checklist - [X] Create `docs/primitives/assertions.md` ✓ https://github.com/darinkishore/dspy/commit/645444c167e24ca2450c65d4af8bbea7f78bff95 [Edit](https://github.com/darinkishore/dspy/edit/sweep/add_documentation_for_assertions_in_dspy/docs/primitives/assertions.md)
sweep-ai[bot] commented 9 months ago

🚀 Here's the PR! #55

See Sweep's progress at the progress dashboard!
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: 88aa0210dd)

Actions (click)

Sandbox execution failed

The sandbox appears to be unavailable or down.


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. https://github.com/darinkishore/dspy/blob/c7a522a4a62f4e9a8fc5bb1a5b10ae1d8200a537/dspy/primitives/assertions.py#L7-L342 https://github.com/darinkishore/dspy/blob/c7a522a4a62f4e9a8fc5bb1a5b10ae1d8200a537/docs/modules/modules.md#L32-L64

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/add_documentation_for_assertions_in_dspy.


🎉 Latest improvements to Sweep:


💡 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