zakandrewking / brainshare

Brainshare is a place to create and share scientific knowledge

Home Page:https://github.com/zakandrewking/brainshare

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brainshare

Brainshare is a place to create and share scientific knowledge. It's an overly amitious side project, and a place to try out lots of new technologies (Supabase, Fly.io, LangChain, and lots more). The goal right now is to:

  1. Sync files from any Google Drive folder.
  2. Synced files are analyzed by Brainshare AI agents, and the results are stored in a private project database.
  3. Files are mapped to a public knowledge graph that includes as much systems biology knowledge as possible (biochemicals, reactions, species, genomes, regulatory elements, etc)
  4. Search private and public data.
  5. Create custom knowledge graphs for your projects, which are also available via API. Your knowledge graphs can include custom content or extend the public graph.
  6. Use the REST and GraphQL APIs to integrate data & knowledge graphs into external analyses (e.g. jupyter notebooks)
  7. Chat with your data (a la ChatGPT)
  8. Graph visualizations
  9. Make all of this available as a data source for downstream applications, e.g. pipe knowlege graphs into an external data warehouse.

Status

Brainshare is in early stage development; roadmap:

  • Authentication
  • Sync files from Google Drive
  • Basic chat interface
  • Queue and workers for processing files
  • REST API and API Gateway
  • Public graph that includes biochemicals, reactions, and species
  • Public graph search
  • PDF analysis - map to public graph
  • AI agent that can generate a knowledge graph
  • GraphQL API
  • Private data search
  • Intelligent chat
  • Public graph for genomes, genes, proteins, etc.
  • Analysis of other file types
  • Collabration
  • SDK for accessing data in your own apps/scripts
  • visualizations
  • data sync
  • hardening
    • how to do deletions: soft delete, cascading deletes etc.

There is a live deployment at https://brainshare.io

Run locally

  1. supabase start and supabase status

  2. Make a copy of frontend/.env.example called frontend/.env. Copy the Supabase Anon Key and API URL from supabase into that file.

  3. cd backend && poetry install

  4. Make a copy of backend/.env.example called backend/.env.local. Copy the Supabase Anon Key, and API URL from supabase into that file.

  5. Run tasks in tasks.json

  6. Run the full stack in launch.json

Troubleshooting

must be member of role "supabase_admin" (SQLSTATE 42501) while executing migration

supabase/supabase#6326 (comment)

About

Brainshare is a place to create and share scientific knowledge

https://github.com/zakandrewking/brainshare

License:Apache License 2.0


Languages

Language:TypeScript 45.2%Language:Python 36.2%Language:HTML 8.6%Language:PLpgSQL 6.5%Language:Jupyter Notebook 3.1%Language:Shell 0.2%Language:Dockerfile 0.1%Language:Procfile 0.0%