Skip to main content
Glama
by microsoft
blog-generate-knowledge.genai.js608 B
script({ title: "blog using generated knowledge", model: "small", group: "mcp", description: "Using Generated Knowledge technique. More at https://learnprompting.org/docs/intermediate/generated_knowledge", tests: { files: "src/rag/markdown.md", keywords: ["markdown"], }, }) // first prompt LLM to generate facts const { text } = await runPrompt((_) => { _.def("FILE", env.files) _.$`Generate 5 facts about the content of FILE.` }) // then use the facts to generate a blog def("FACTS", text) $`Use the above facts to write a one paragraph blog post`

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server