Skip to content

Handling maxContextTokenLength #140

@margaretha

Description

@margaretha

The size of token context is not as precise as that of character context. It may happen that the token context size exceeds the character context size.

To prevent this, we may recheck the token context length of an actual search result with max character context size. If the token context is larger than max char context size, the context should be cut with lower number of tokens. For instance:

with maxContextTokenLength = 3 and maxContextCharLength=10

"This is a nice [example] for a snippet"

should be reduced to

"a nice [example] for a"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions