Skip to content

Commit 94f8d02

Browse files
committed
fix(pdf): add t, top-p and top-k params
1 parent 73a644f commit 94f8d02

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ wheels/
1717

1818

1919
# sqlite
20-
*.db
20+
*.db
21+
*.pdf

examples/05_ingest_pdf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ async def main() -> None:
128128
model=app_settings.agent.gemini_model,
129129
tools=[read_pdf_text_tool],
130130
instruction=pdf_agent_instruction,
131+
generate_content_config=types.GenerateContentConfig(
132+
temperature=0.0,
133+
top_k=1,
134+
top_p=0.3,
135+
candidate_count=1
136+
)
131137
)
132138

133139
# Mock onchain contract posting

examples/data/sample_invoice.pdf

-1.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)