Skip to content

Commit

Permalink
slide
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Feb 24, 2025
1 parent d9e16be commit 82b1a21
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tutorial/slides/public/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,26 @@ Run with:
uv run index.py
```

----

You could also provide the list of Document directly from your script

```python
ex_question = "How to retrieve proteins?"
docs.append(Document(
page_content=ex_question,
metadata={
"question": ex_question,
"answer": """SELECT ?protein WHERE {
?protein a up:Protein .
}""",
"endpoint_url": "https://sparql.uniprot.org/",
"query_type": "SelectQuery",
"doc_type": "SPARQL endpoints query examples",
},
))
```

---

## Index context
Expand Down

0 comments on commit 82b1a21

Please sign in to comment.