docs: Add error handling to "Processing helpers" section (#2263) - #2325
Open
rchiang wants to merge 2 commits into
Open
docs: Add error handling to "Processing helpers" section (#2263)#2325rchiang wants to merge 2 commits into
rchiang wants to merge 2 commits into
Conversation
Member
|
@georgeh0 can help take a look! |
Author
georgeh0
reviewed
Aug 19, 2026
|
|
||
| ### `map()` | ||
| `map()` applies an async function to each item in a collection, running all calls concurrently within the current processing component. Unlike [`mount()`](#mount) and [`mount_each()`](#mount_each), it does **not** create child processing components — it's purely concurrent execution (similar to `asyncio.gather()`). | ||
| ### Using CocoIndex `map()` to apply transformations |
Member
There was a problem hiding this comment.
Everything in the doc is about CocoIndex, so we don't need to repeat "CocoIndex" here.
IMO something like this is sufficient:
`map()`: transform items concurrently
Author
There was a problem hiding this comment.
The two main reasons I went with a more "full English phrasing" in the header.
- Using a full phrase is a bit more common in the "user's guide" documentation style. The shortened version you are suggesting is more common in "reference" documentation style.
- I'm not sure if it will get fixed with search index configuration, but I think having too short phrasing in the headers is part of what makes the search bar matching a bit confusing in the search previews, especially combined with "Header 3" or "Header 4" style.
…o#2263) Added section on error handling. Also adjusted the header and some of the text in the map() section to improve searchability.
- Remove error handling section - Fix some text to avoid confusion - The doc changes are now just the title changes and the additional references to `coco.map()` to improve section ranking for search.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added section on error handling. Also adjusted the header and some of the text in the map() section to improve searchability.