{"id":23934008,"url":"https://github.com/Suiwan/notionGPT","last_synced_at":"2025-09-11T16:33:28.673Z","repository":{"id":162530933,"uuid":"637062199","full_name":"Suiwan/notionGPT","owner":"Suiwan","description":"NotionGPT, a practical tool built on top of ChatGPT large language model, make it your note-taking assistant!","archived":false,"fork":false,"pushed_at":"2023-05-18T01:24:44.000Z","size":78,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-06T00:36:07.266Z","etag":null,"topics":["chatgpt","fastapi","llm","pinecone","python","vectordb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Suiwan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-06T11:45:09.000Z","updated_at":"2024-10-03T14:48:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ad20130-b941-459e-a0a6-df49b90f8a2e","html_url":"https://github.com/Suiwan/notionGPT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Suiwan/notionGPT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suiwan%2FnotionGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suiwan%2FnotionGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suiwan%2FnotionGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suiwan%2FnotionGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suiwan","download_url":"https://codeload.github.com/Suiwan/notionGPT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suiwan%2FnotionGPT/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274670554,"owners_count":25328259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","fastapi","llm","pinecone","python","vectordb"],"created_at":"2025-01-06T00:30:02.537Z","updated_at":"2025-09-11T16:33:28.636Z","avatar_url":"https://github.com/Suiwan.png","language":"Python","funding_links":[],"categories":["Building"],"sub_categories":["Tools"],"readme":"# NotionGPT\nNotionGPT, a practical tool built on top of ChatGPT large language model, make it your note-taking assistant!\n\n# 简介\nNotionGPT，一款ChatGPT大模型下游的实用工具，能够根据你的Notion笔记内容进行问题回答。\n\n# 实现步骤\n1. 通过官方API获取Notion笔记数据 (https://developers.notion.com/reference/intro)\n2. 使用SnowNLP进行中文分句(https://github.com/isnowfy/snownlp)\n3. 调用OPENAI的Emeddling API 进行句子Embedding (https://platform.openai.com/docs/api-reference/embeddings)\n4. 使用Pinecone进行向量存储与查询\n5. 构造prompt\n6. 调用OPENAI的QA API 进行问题回答\n\n# Tech Stack\n1. Notion API:   get_database_content \u0026 page_content\n\n2. SnowNLP: chinese sentence segmentation\n\n3. Pinecone: vectorDB- personal knowledge DB- upsert \u0026 query\n\n4. OpenAI: sentence embedding \u0026 prompt QA\n\n5. FastAPI:  Frontend web UI\n\n6. Prompt Engineering: CoT(Chain of Thought), Search in chain, chain of keyword()\n\n\n# Usage\n1. Notion： data_base_id \u0026 auth_token\n\n2. Pinecone: pinecone api key \u0026 pinecone env_name (proxy needed)\n\n3. OpenAI: openai api key\n\n4. `git clone https://github.com/Suiwan/notionGPT.git`\n\n5. `pip install -r requirements.txt`\n\n6. Fill in code\n\n7. `python webUI.py`\n\n\n# Todo\n- [ ] Add function of updating notes to dababase\n- [ ] Better prompt engineering\n- [ ] Other QA LLM support\n- [ ] Local vector database\n\n\n# Reference\n- Chain of Thought: https://arxiv.org/abs/2201.11903\n- Search in Chain:  https://arxiv.org/abs/2304.14732","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSuiwan%2FnotionGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSuiwan%2FnotionGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSuiwan%2FnotionGPT/lists"}