Examples¶
Explore practical examples of using Pygrad for various use cases.
Available Examples¶
Basic Usage¶
Core operations: adding repositories, searching, and managing datasets.
Search Queries¶
Various search query patterns and techniques for getting the best results.
Integration¶
Integrating Pygrad with FastAPI, Jupyter, and batch processing.
Quick Reference¶
| Function | Description | Example |
|---|---|---|
pg.add(url) |
Index a repository | await pg.add("https://github.com/owner/repo") |
pg.search(url, query) |
Search documentation | await pg.search(url, "How to use X?") |
pg.list() |
List indexed repos | datasets = await pg.list() |
pg.delete(url) |
Remove a repository | await pg.delete(url) |
pg.visualize(path) |
Export graph as HTML | await pg.visualize("graph.html") |