Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,42 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
|
5 |
+
# AstraPy Documentation
|
6 |
+
|
7 |
+
This data file contains the AstraPy documentation in a specialized format for use
|
8 |
+
in the GraphRAG `code_generation` example.
|
9 |
+
|
10 |
+
## Generation
|
11 |
+
|
12 |
+
The file was generated using `astrapy` version `1.5.2` via the `convert` method in
|
13 |
+
`graph_rag_example_helpers.examples.code_generation.converter`.
|
14 |
+
|
15 |
+
[See the help on the
|
16 |
+
method for more information about how to use it.](packages/graph-rag-example-helpers/src/graph_rag_example_helpers/examples/code_generation/converter.py)
|
17 |
+
|
18 |
+
## Structure
|
19 |
+
|
20 |
+
The JSONL file contains one JSON object per line, with the following structure:
|
21 |
+
|
22 |
+
```yaml
|
23 |
+
id: the path to the object in the package
|
24 |
+
text: the description of the object (if any, can be empty)
|
25 |
+
|
26 |
+
metadata: Always includes `name`, `path`, `kind` keys. The remaining keys below are included when available.
|
27 |
+
name: the name of the object
|
28 |
+
path: the path to the object in the package
|
29 |
+
kind: either `module`, `class`, `function`, or `attribute`
|
30 |
+
parameters: the parameters for a class or function. Includes type information, default values, and descriptions
|
31 |
+
attributes: the attributes on a class or module. Includes type information and descriptions
|
32 |
+
gathered_types: list of non-standard types in the parameters and attributes
|
33 |
+
imports: list of non-standard types imported by the class or module
|
34 |
+
exports: list of non-standard types exported by the module
|
35 |
+
properties: list of boolean properties about the module
|
36 |
+
example: any code examples for the class, function, or module
|
37 |
+
references: list of any non-standard types used in the example code
|
38 |
+
returns: the return type and description
|
39 |
+
yields: the yield type and description
|
40 |
+
bases: list of base types inherited by the class
|
41 |
+
implemented_by: list of types that implement the a base class
|
42 |
+
```
|