Skip to content

Commit d33f767

Browse files
authored
Adds a simple Mellea example. (#35)
1 parent a744798 commit d33f767

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/examples/rag/mellea_pdf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import mellea
2+
from mellea.stdlib.docs.richdocument import RichDocument
3+
4+
m = mellea.start_session()
5+
6+
doc = RichDocument.from_document_file(
7+
"https://www.fs.usda.gov/foresthealth/docs/fidls/FIDL-78-ArmillariaRootDisease.pdf"
8+
)
9+
10+
print(
11+
m.instruct(
12+
"Determine whether the mellea fungus only feeds on dead or weakened trees, thereby improving forest health",
13+
grounding_context={"usfs": doc},
14+
).value
15+
)

0 commit comments

Comments
 (0)