How tariqlabs/agentic-personal-assistant works
This is a full-stack PDF-grounded personal assistant. Users upload PDFs for ingestion, then chat with an agent that can search the indexed documents and answer with conversation context. The graph separates the browser UI, API orchestration, ingestion stages, and agent/retrieval. Source excerpts show the main request paths and integrations; LangSmith observability is documented in the README, but its implementation is not shown.
Main entry points: agent.js ReAct agent · index.js Express API · ingest.js PDF ingestion pipeline · App.jsx Chat and upload UI
Components 14
Web interface
- Chat and upload UI
client/src/App.jsx
API orchestration
- Express API
server/index.js
Document ingestion
- PDF ingestion pipeline
server/ingest.js - PDF extraction
server/ingest.js - Text chunking
server/ingest.js - Embedding and indexing
server/ingest.js
Agent and retrieval
- ReAct agent
server/agent.js - Conversation memory
server/agent.js - Knowledge search tool
server/tools.js - Pinecone vector store
server/tools.js
Other components
- User
- OpenAI GPT-4o
- Pinecone service
- LangSmith
Connections 15
- User → Chat and upload UI: uploads and chats
client/src/App.jsx - Chat and upload UI → Express API: posts requests
client/src/App.jsx - Express API → Chat and upload UI: returns results
client/src/App.jsx - Express API → ReAct agent: runs chat
server/index.js - Express API → PDF ingestion pipeline: ingests upload
server/index.js - PDF ingestion pipeline → PDF extraction: loads PDF
server/ingest.js - PDF ingestion pipeline → Text chunking: splits documents
server/ingest.js - PDF ingestion pipeline → Embedding and indexing: embeds and stores
server/ingest.js - Embedding and indexing → Pinecone service: upserts vectors
server/ingest.js - ReAct agent → Conversation memory: uses checkpoint
server/agent.js - ReAct agent → Knowledge search tool: dispatches search
server/agent.js - Knowledge search tool → Pinecone vector store: similarity searches
server/tools.js - Pinecone vector store → Pinecone service: queries index
server/tools.js - ReAct agent → OpenAI GPT-4o: generates responses
server/agent.js - ReAct agent → LangSmith: traces activity
README.md