Skip to content

kom-senapati/talk-to-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

talk-to-page

⭐ About

  • Open-source web app for chatting with web pages.
  • Built with Next.js, CopilotKit.
  • Uses a self-RAG LangGraph agent to interact with URLs.
  • Simplifies web content extraction and conversation.
Demo Video Blog Post
YouTube Blog

πŸ› οΈ Tech Stack

Next.js CopilotKit Tailwind CSS ShadCN UI LangGraph FastAPI

πŸ“€ Set up

Setting Up the Agent and UI

1. Get an API Key
  • Obtain a GROQ_API_KEY.
2. Clone the Repository
  • Clone the repository to your local machine:
    git clone https://github.com/kom-senapati/talk-to-page.git
3. Set Up the Agent
  • Navigate to the agent directory:
    cd agent
  • Install dependencies using Poetry:
    poetry install
  • Create a .env file inside the ./agent directory with your GROQ_API_KEY:
    GROQ_API_KEY=YOUR_API_KEY_HERE
    
  • Run the agent demo:
    poetry run demo
4. Set Up the UI
  • Navigate to the UI directory:
    cd ./ui
  • Install dependencies using Bun:
    bun i
  • Create a .env file inside the ./ui directory with your GROQ_API_KEY:
    GROQ_API_KEY=YOUR_API_KEY_HERE
    
  • Run the Next.js project:
    bun dev

Troubleshooting

  1. Ensure no other local application is running on port 8000.
  2. In the file /agent/rag_agent/demo.py, change the address from 0.0.0.0 to 127.0.0.1 or localhost if needed.

πŸ“§ Contact

Hi, I'm K Om Senapati! πŸ‘‹
Connect with me on LinkedIn, X and check out my other projects on GitHub.