Skip to content

GleanSearchRetriever configuration #7

@ralphbird

Description

@ralphbird

Hi, the documentation shows that the GleanSearchRetriever can be initiated with a parameter max_snippet_size

# Initialize with custom settings
retriever = GleanSearchRetriever(
    subdomain="your-subdomain",  # Override environment variable
    api_token="your-api-token",  # Override environment variable
    act_as="[email protected]",   # Override environment variable
    page_size=10,               # Default number of results
    max_snippet_size=300        # Default snippet size
)

but when I run this I get the following error

TypeError: GleanSearchRetriever.__init__() got an unexpected keyword argument 'max_snippet_size'

(it's the same for page_size)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions