Use case
Security Questionnaires and RFPs
Draft answers to the 300 questions you have answered before, from your own documents, and flag the ones a person must decide.
- Stack Knowledge Engine + Cognipeer Flows
- Pattern RAG · Flow
- Read ~5 min
Overview
Every enterprise deal ships with a questionnaire in slightly different words. This build indexes what you already wrote (policies, past answers, architecture notes) in a Knowledge Engine module, then runs a flow that finds the passages for each question and drafts an answer.
Enterprise module
Flows is the enterprise flows module. See Flows.
The shape of the flow
Start (questions: list)
|
v
For each question --body--> Search knowledge --> LLM (JSON: answer, confidence, sources)
|
done (results)
v
Run code (build CSV) --> Save file --> EndBuild it
- Index what you have. Create a Knowledge Engine module and upload or crawl your documents. Put the source and date in each document's metadata so answers can cite them. Check retrieval in the module's Playground with real questions before you build the flow, and consider hybrid retrieval so exact terms such as certificate names and standards are found.
- Declare the input. On Start add
questions, a list of question texts (parse the customer's spreadsheet into that list before the call). - Retrieve, then answer. In a For each body add Search knowledge with the Knowledge base, the question as Query, Results (top K) and a Minimum score. Follow it with an LLM step in JSON mode with a schema of
answer,confidence(high,medium,low) andsources. In the System prompt write the house style once: answer only from the passages, never invent a certification or a date, and answer "needs review" when the passages do not cover the question. - Flag, do not hide. Anything with low confidence or no passage above the minimum score is marked for a person. The point of the flow is a good first draft plus an honest list of what it could not answer.
- Ship. Build a CSV with Run code (needs the Sandbox runtime) and Save file; declare the file id as an output.
Keep the house style in one place
Instead of repeating style rules in each prompt, put them in a skill and give it to an agent that answers questionnaire questions in chat, or in the System prompt of the flow's LLM step.
Pitfalls
- A confident wrong answer is the failure mode. Keep Minimum score high enough that weak matches return nothing, and make "needs review" an acceptable answer.
- Stale documents answer old questions. Re-index when policies change, and remove superseded files.
- Access. If the knowledge base has access control, check how it applies to the flow before you rely on it: see Who reads what.

