Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

🧠 FileMind AI

AI-powered document Q&A with decentralized storage on Filecoin

🏆 PL Genesis Hackathon — DevSpot Submission

Track: Fresh Code | Bounty: Filecoin + AI Integration


🚀 What It Does

FileMind AI lets users upload any PDF or text document, stores it permanently on Filecoin via IPFS (web3.storage), and uses LangChain + OpenAI GPT to answer any questions about the document.

Problem it solves: Documents stored on centralized servers can be lost, censored, or tampered with. FileMind combines the permanence of decentralized storage with the power of AI to make any document permanently queryable.

🛠 Tech Stack

Layer Technology
Decentralized Storage Filecoin via web3.storage
AI / LLM OpenAI GPT-3.5-turbo
RAG Framework LangChain + FAISS vector store
Backend Python FastAPI
Frontend React (Vite)

⚙️ How to Run

Backend

cd backend
pip install -r requirements.txt
export OPENAI_API_KEY=your_key_here
export WEB3_STORAGE_TOKEN=your_token_here
uvicorn main:app --reload

Frontend

cd frontend
npm install
npm run dev

Open http://localhost:5173

🎯 How It Works

  1. User uploads a PDF or TXT file
  2. File is uploaded to Filecoin via web3.storage → gets a permanent CID/IPFS URL
  3. File is split into chunks and embedded using OpenAI Embeddings
  4. Vectors stored in FAISS for fast similarity search
  5. User asks a question → LangChain retrieves relevant chunks → GPT answers

🌐 Filecoin Integration

Every uploaded document is stored on Filecoin via web3.storage's API. The returned CID is a permanent, decentralized address for the file — no central server needed.

📸 Demo

Upload any research paper, contract, or report and ask:

  • "What are the key findings?"
  • "Summarize section 3"
  • "What are the risks mentioned?"

About

FileMind AI – A tool that permanently stores documents on Filecoin and uses AI to provide instant answers to any question!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages