Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added code generation example #164

Merged
merged 3 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions data/astrapy.README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# AstraPy Documentation

This data file contains the AstraPy documentation in a specialized format for use
in the GraphRAG `code_generation` example.

## Generation

The file was generated using `astrapy` version `1.5.2` via the `convert` method in
`graph_rag_example_helpers.examples.code_generation.converter`. See the help on the
method for more information about how to use it.

## Structure

The JSONL file contains one JSON object per line, with the following structure:

id: the path to the object in the package
text: the description of the object (if any, can be empty)

metadata: Always includes `name`, `path`, `kind` keys.
The remaining keys below are included when available.
name: the name of the object
path: the path to the object in the package
kind: either `module`, `class`, `function`, or `attribute`
parameters: the parameters for a class or function. Includes type
information, default values, and descriptions
attributes: the attributes on a class or module. Includes type
information and descriptions
gathered_types: list of non-standard types in the parameters and attributes
imports: list of non-standard types imported by the class or module
exports: list of non-standard types exported by the module
properties: list of boolean properties about the module
example: any code examples for the class, function, or module
references: list of any non-standard types used in the example code
returns: the return type and description
yields: the yield type and description
bases: list of base types inherited by the class
implemented_by: list of types that implement the a base class
1,081 changes: 1,081 additions & 0 deletions data/astrapy.jsonl

Large diffs are not rendered by default.

Loading
Loading