googleapis / googleapis/python-genai
Recitation filters for contracts by Government citations
- Dominant language
- Python
- Stars
- 4k
- Forks
- 1k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 40
Description
Hi I am processing contracts with Gemini 3 flash and 3.1 pro and I am getting RECITATION finish reasons for extracting contract content on documents. This is a very stringent filter and shuts down a lot of legal tech use cases such as extraction.
I kindly request these filters to be removed, specially from .gov sources and boilerplate language.
gemini-3-flash-preview:
```
candidates=[
Candidate(
citation_metadata=CitationMetadata(
citations=[
Citation(
end_index=2396,
start_index=2140
),
Citation(
end_index=5091,
start_index=4622
),
Citation(
end_index=5236,
start_index=5013,
uri='https://riverdalepeaks2md.colorado.gov/sites/riverdalepeaks2md/files/June%2027%2C%202019%20Combined.pdf'
),
Citation(
end_index=5572,
start_index=5363
),
Citation(
end_index=6103,
start_index=5857,
uri='https://www.sec.gov/Archives/edgar/data/1075636/000108503703000222/e101.htm'
),
<... 1 more items ...>,
]
),
content=Content(),
finish_reason=,
```
Contributor guide
Assessment
This issue has not been assessed yet.