{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "margelo-ai-chat-demo--point-knowledge-base-tool-at-own-index",
 "repo": "margelo/ai-chat-demo",
 "repo_url": "https://github.com/margelo/ai-chat-demo",
 "repo_slug": "margelo-ai-chat-demo",
 "title": "Point the knowledge base tool at your own Pinecone index",
 "page_title": "How to point the knowledge base tool at your own Pinecone index with AI Chat Demo",
 "summary": "Reuse the chat app and retrieval tool with your own Pinecone index and text content.",
 "who": "A developer or product team with their own documentation who wants a mobile assistant that answers only from that content.",
 "problem": "Building a retrieval-backed chat that answers only from a specific body of text means wiring a streamed model, a search tool, and a mobile UI together.",
 "outcome": "The assistant answers questions from your index, and the answers draw on the retrieved text instead of the model's memory.",
 "steps": [
  "Create a Pinecone index with integrated embedding and load your text into it, since the README says raw text goes up and Pinecone embeds it server-side.",
  "Open `src/config.ts` and set the Pinecone key and your new index host.",
  "Read `app/src/rag/searchKnowledgeBase.ts` and update the system behavior that tells the model to answer Margelo questions only from retrieved context, changing the topic to your own.",
  "Run `npm run typecheck` to confirm the changes compile.",
  "Run `npm run ios` or `npm run android` and test questions that you know the index can answer."
 ],
 "agent_prompt": "In the margelo/ai-chat-demo repo, change the knowledge base search to use the Pinecone index host <your index host> and adjust the retrieval instructions for <your topic>. Run npm run typecheck and report the result, then ask one question you know the index answers and confirm the reply uses retrieved text.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README does not describe how to populate the index, so the content loading step depends on your own Pinecone process.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Xcode and CocoaPods for iOS, or the Android setup from the React Native environment guide",
  "Node 22.11 or newer",
  "An OpenAI API key",
  "A Pinecone API key, a populated Pinecone index, and its index host"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Your Pinecone and OpenAI keys go into the app bundle under this demo setup, so limit their scope and rotate them after testing."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/margelo-ai-chat-demo/point-knowledge-base-tool-at-own-index/",
 "md": "https://dedupedai.com/use-cases/margelo-ai-chat-demo/point-knowledge-base-tool-at-own-index/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/margelo-ai-chat-demo--point-knowledge-base-tool-at-own-index.json",
 "api_version": "v1"
}
