CoolFace
Apppublic

nasa-hackathon1/bio_search_engine_hf

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ“Œ Overview

This project was built for the NASA Space Apps Hackathon. It enables researchers and the public to search, select, and explore NASA bioscience papers interactively through a chatbot. Instead of reading dozens of PDFs manually, users can ask natural questions and get answers grounded only in the papers they select.

๐Ÿ› ๏ธ Workflow

  1. 1.Search: Use keywords to find relevant papers from the NASA Technical Reports Server (NTRS). The top 15 results with downloadable PDFs are shown.
  2. 2.Select & Train: Choose the papers you're interested in from the search results and click "Train Chatbot".
  3. 3.The backend downloads the selected PDFs to the server.
  4. 4.The text is extracted, processed into chunks, and converted into vector embeddings. This process happens in the background, and you'll see status updates in the chat.
  5. 5.A private AI model is now ready to answer questions based only on the content of your selected papers.
  6. 6.Read & Ask: While the bot is training, the UI updates to show you the list of papers you selected. You can click to open and read them. Once training is complete, you can ask the chatbot specific questions (e.g., "What was the effect of microgravity on E. coli?") and get synthesized answers with citations.

โš™๏ธ Technology Stack

  • โ€”Frontend: HTML, CSS, JavaScript
  • โ€”Backend: Flask (Python)
  • โ€”AI & Machine Learning:
  • โ€”Embeddings: sentence-transformers to convert text into numerical vectors.
  • โ€”Vector Search: faiss for efficient similarity search.
  • โ€”LLM (API): llama3-8b-8192 via Groq for fast, high-quality generation.
  • โ€”LLM (Fallback): GPT4All with the orca-mini model for local, offline generation.
  • โ€”Deployment: Docker, Hugging Face Spaces