Skip to content

[RAG] How to extract generated strings from RetrievAugLMMarginOutput #7905

@lalitpagaria

Description

@lalitpagaria

❓ Questions & Help

How to extract generated strings from RetrievAugLMMarginOutput?

Details

When using RagSequenceForGeneration and retriever separately we can't use model.generate (refer #7829). And calling model.__call__ directly return RetrievAugLMMarginOutput. I not able to to find way to extract generated_ids from it.

A link to original question on the forum/Stack Overflow:

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