Skip to content

Commit

Permalink
docs: add naive rag
Browse files Browse the repository at this point in the history
  • Loading branch information
gusye1234 committed Sep 5, 2024
1 parent 4d0ae78 commit e041b3d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Next Version TODO

- [ ] Add `eval` method for `GraphRAG`, add at least one benchmark dataset
- [ ] Add `before_query`, `before_insert` to separate component loadings.
- [x] Add naive RAG pipeline

## Interesting directions

Expand Down
17 changes: 17 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,23 @@ with open("./book.txt") as f:
</details>

<details>
<summary> Naive RAG</summary>

`nano-graphrag` supports naive RAG insert and query as well:

```python
graph_func = GraphRAG(working_dir="./dickens", enable_naive_rag=True)
...
# Query
print(rag.query(
"What are the top themes in this story?",
param=QueryParam(mode="naive")
)
```
</details>


### Async

For each method `NAME(...)` , there is a corresponding async method `aNAME(...)`
Expand Down

0 comments on commit e041b3d

Please sign in to comment.