Skip to content

[Bug]: get_operation_guided prompt asks to review OpenAPI spec but does not provide it #12

@OwenMaine

Description

@OwenMaine

What happened?

The code sends a prompt to the LLM saying: "Review the OpenAPI specification and infer the operation ID.It never actually sends the OpenAPI specification in that message. The LLM receiving this request is "blind." It doesn't have the spec in its context window. It will have to rely on its pre-trained knowledge of Paystack (which might be outdated) or simply hallucinate.
To fix this I propose you need to include a summarized list of endpoints in the prompt or use an embedding search (RAG) to find the relevant operation.

Version

1.0.2 (Default)

Relevant log output

Code of Conduct

  • I agree to follow the project's Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions