Skip to content

Recitation filters for contracts by Government citations #2223

@OscarGarciaF

Description

@OscarGarciaF

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=<FinishReason.RECITATION: 'RECITATION'>,

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions