Skip to content

HS-MUMU/BrainTrace_OnDeviceAi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 

Repository files navigation

AIκ°€ ν•™μŠ΅ 자료λ₯Ό μžλ™ λΆ„μ„ν•˜κ³ 
λ‹Ήμ‹ λ§Œμ˜ Second Brain으둜 λ§Œλ“€μ–΄λ“œλ¦½λ‹ˆλ‹€.

🧠 ν”„λ‘œμ νŠΈ κ°œμš”

β€œμžλ£Œλ₯Ό λ„£μœΌλ©΄ 지식이 λœλ‹€. μ§ˆλ¬Έν•˜λ©΄ λ¬Έλ§₯이 λ‹΅ν•œλ‹€.”

ν˜„λŒ€μ˜ ν•™μŠ΅ ν™˜κ²½μ—μ„œλŠ” μˆ˜λ§Žμ€ ν•™μŠ΅ 자료(PDF, κ°•μ˜ λ…ΉμŒ, ν…μŠ€νŠΈ 파일 λ“±)κ°€ λ””μ§€ν„Έν™”λ˜μ–΄ μ‘΄μž¬ν•˜μ§€λ§Œ,
이λ₯Ό μ²΄κ³„μ μœΌλ‘œ μ •λ¦¬ν•˜κ³  ν™œμš©ν•˜λŠ” λ°μ—λŠ” μ—¬μ „νžˆ μ‚¬λžŒμ˜ μˆ˜μž‘μ—…μ΄ ν•„μš”ν•©λ‹ˆλ‹€.
λ˜ν•œ 개인 λ§žμΆ€ν˜• ν•™μŠ΅ λ„μš°λ―ΈλŠ” λŒ€λΆ€λΆ„ ν΄λΌμš°λ“œ 기반 μ„œλΉ„μŠ€λ‘œ, λ³΄μ•ˆμ„±κ³Ό κ°œμΈμ •λ³΄ 보호 μΈ‘λ©΄μ—μ„œ ν•œκ³„κ°€ μ‘΄μž¬ν•©λ‹ˆλ‹€.

Brain-TraceλŠ” μ΄λŸ¬ν•œ 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ 기획된 μ˜¨λ””λ°”μ΄μŠ€ μ§€μ‹κ·Έλž˜ν”„ 기반 AI λ„μš°λ―Έμž…λ‹ˆλ‹€.
μ‚¬μš©μžκ°€ PDF, ν…μŠ€νŠΈ, μŒμ„± νŒŒμΌμ„ μ—…λ‘œλ“œν•˜λ©΄ μ‹œμŠ€ν…œμ€ μžλ™μœΌλ‘œ λ‚΄μš©μ„ λΆ„μ„ν•˜κ³ ,
핡심 κ°œλ…κ³Ό 관계λ₯Ό μΆ”μΆœν•˜μ—¬ μ§€μ‹κ·Έλž˜ν”„(Knowledge Graph) ν˜•νƒœλ‘œ κ΅¬μ‘°ν™”ν•©λ‹ˆλ‹€.

이후 μ‚¬μš©μžκ°€ μžμ—°μ–΄λ‘œ μ§ˆλ¬Έν•˜λ©΄, λ‚΄λΆ€μ μœΌλ‘œ μ˜¨λ””λ°”μ΄μŠ€ LLM을 μ‚¬μš©ν•˜μ—¬ Cypher 쿼리둜 λ³€ν™˜ν•˜κ³ ,
Neo4j λ°μ΄ν„°λ² μ΄μŠ€μ—μ„œ κ΄€λ ¨ 정보λ₯Ό κ²€μƒ‰ν•œ ν›„, 좜처 기반의 λ¬Έλ§₯ 응닡을 μ œκ³΅ν•©λ‹ˆλ‹€.
μ΄λŠ” 기쑴의 λ‹¨μˆœ μš”μ•½ μ‹œμŠ€ν…œκ³Ό 달리 질문자의 μ˜λ„μ— 따라 닀단계 μΆ”λ‘ κ³Ό μ—°κ²° 정보λ₯Ό λ°”νƒ•μœΌλ‘œ
μ •ν™•ν•œ 정보λ₯Ό μ œκ³΅ν•  수 μžˆμ–΄, ν•™μŠ΅μ˜ μ§ˆμ„ 크게 ν–₯μƒμ‹œν‚΅λ‹ˆλ‹€.

λ˜ν•œ λͺ¨λ“  ν”„λ‘œμ„ΈμŠ€λŠ” 둜컬 λ””λ°”μ΄μŠ€μ—μ„œ μ²˜λ¦¬λ˜λ―€λ‘œ,
ν΄λΌμš°λ“œ 의쑴 없이 μ™„μ „ν•œ μ˜€ν”„λΌμΈ ν™˜κ²½μ—μ„œλ„ μž‘λ™ν•˜λ©°,
κ°œμΈμ •λ³΄ 보호 및 λ―Όκ°ν•œ μ—°κ΅¬μžλ£Œμ˜ μ•ˆμ „ν•œ μ²˜λ¦¬κ°€ κ°€λŠ₯ν•©λ‹ˆλ‹€.

πŸ“Œ 결과적으둜, Brain-TraceλŠ” λ‹¨μˆœν•œ λ¬Έμ„œ 뢄석 도ꡬλ₯Ό λ„˜μ–΄ "λ‚΄ μ†μ•ˆμ˜ 두 번째 λ‡Œ(Second Brain)"λ‘œμ„œ μž‘λ™ν•˜λŠ”
지식 ꡬ쑰화 + λ¬Έλ§₯ 질문 응닡 + λ³΄μ•ˆ κ°•ν™”μ˜ μ’…ν•© AI μ‹œμŠ€ν…œμž…λ‹ˆλ‹€.


🌟 μ£Όμš” κΈ°λŠ₯

πŸ” μ˜¨λ””λ°”μ΄μŠ€ 기반 AI

  • λͺ¨λ“  κΈ°λŠ₯은 ν΄λΌμš°λ“œ 없이 λ‘œμ»¬μ—μ„œ μ‹€ν–‰
  • κ°œμΈμ •λ³΄ 유좜 우렀 없이 λ³΄μ•ˆμ„±κ³Ό λΉ„μš© 절감 μ‹€ν˜„

πŸ“„ λ‹€μ–‘ν•œ 자료 μžλ™ 뢄석

  • PDF, ν…μŠ€νŠΈ, μŒμ„±μ„ μ—…λ‘œλ“œν•˜λ©΄ μžλ™μœΌλ‘œ 정보 μΆ”μΆœ
  • μžμ—°μ–΄ 처리둜 **κ°œλ…(λ…Έλ“œ)**κ³Ό **관계(μ—£μ§€)**λ₯Ό μƒμ„±ν•˜μ—¬ Neo4j κ·Έλž˜ν”„μ— μ €μž₯

🧠 μ§€μ‹κ·Έλž˜ν”„ μ‹œκ°ν™”

  • Cytoscape.js 기반으둜 직관적인 κ·Έλž˜ν”„ 탐색 제곡
  • λ…Έλ“œ 클릭/ν•˜μ΄λΌμ΄νŒ… κΈ°λŠ₯으둜 λ¬Έλ§₯ 좔적 용이

πŸ’¬ RAG 기반 λ¬Έλ§₯ μ§ˆμ˜μ‘λ‹΅

  • μ‚¬μš©μžμ˜ μ§ˆλ¬Έμ„ μ˜¨λ””λ°”μ΄μŠ€ LLM을 톡해 Cypher 쿼리둜 λ³€ν™˜
  • Graph DBμ—μ„œ 응닡 μΆ”μΆœ + 좜처 제곡
  • λ‹¨μˆœ μš”μ•½μ„ λ„˜μ–΄ ꡬ쑰 기반의 μ •λ°€ν•œ λ‹΅λ³€ 제곡

πŸ” 좜처 기반 응닡 μΈν„°νŽ˜μ΄μŠ€

  • 닡변에 μ‚¬μš©λœ 지식 λ…Έλ“œ 좜처λ₯Ό ν•¨κ»˜ 제곡
  • 정보 μ‹ λ’°μ„±κ³Ό 좔적 κ°€λŠ₯μ„± ν–₯상

🧬 μ‹œμŠ€ν…œ μ•„ν‚€ν…μ²˜

[λ¬Έμ„œ μ—…λ‘œλ“œ]
      ↓
[ν…μŠ€νŠΈ/μŒμ„± 뢄석 (Whisper, NLP)]
      ↓
[개체/관계 μΆ”μΆœ β†’ Neo4j μ €μž₯]
      ↓
[μ‚¬μš©μž 질의 (μžμ—°μ–΄)]
      ↓
[μ˜¨λ””λ°”μ΄μŠ€ llm 기반 Cypher 쿼리 생성]
      ↓
[Neo4jμ—μ„œ 응닡 μΆ”μΆœ + 좜처 좔적]
      ↓
[λ¬Έλ§₯ 기반 λ‹΅λ³€ + λ…Έλ“œ μ‹œκ°ν™”]

πŸ› οΈ 기술 μŠ€νƒ

ν•­λͺ© 기술
ν”„λ‘ νŠΈμ—”λ“œ React, Cytoscape.js, Vite
λ°±μ—”λ“œ FastAPI
λ°μ΄ν„°λ² μ΄μŠ€ Neo4j (Embedded), SQLite
μŒμ„± 인식 OpenAI Whisper
AI λͺ¨λΈ llama, KoE5
RAG ꡬ성 μžμ—°μ–΄ β†’ Cypher β†’ Graph 응닡
기타 도ꡬ Electron, VS Code, Git

πŸ“‘ API λ¬Έμ„œ (Swagger UI)

πŸ“‚ Swagger Docs 보기 (ν΄λ¦­ν•΄μ„œ 펼치기)

FastAPI 기반 REST APIλŠ” μ•„λž˜μ™€ 같은 Swagger UI ν˜•νƒœλ‘œ κ΅¬μ„±λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

Swagger UI Screenshot

λ‘œμ»¬μ—μ„œλŠ” http://localhost:8000/docsμ—μ„œ 직접 ν™•μΈν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€.


πŸ§ͺ μ„±λŠ₯ 비ꡐ (Graph-RAG vs 일반 RAG)

Method P R F1
Community-GraphRAG (Local) 67.2 64.89 64.6
일반 RAG 66.34 63.99 63.88

좜처: arXiv:2502.11371


πŸ’‘ κΈ°λŒ€ 효과

  • πŸ“š ꡐ윑용 AI ν•™μŠ΅ λ„μš°λ―Έ
    • κ°•μ˜μžλ£Œ 기반 μžλ™ 정리 및 질문 응닡 지원
  • 🏒 κΈ°μ—… 지식관리 도ꡬ
    • 회의둝/λ¬Έμ„œ μžλ™ ꡬ쑰화, 검색 νš¨μœ¨μ„± ν–₯상
  • πŸ”’ λ³΄μ•ˆ 쀑심 AI
    • 인터넷 μ—°κ²° 없이 μ‚¬μš© κ°€λŠ₯ν•œ μ˜€ν”„λΌμΈ AI ν”Œλž«νΌ

πŸŽ₯ μ‹œμ—° μ˜μƒ

μ†Œκ°œ μ˜μƒ Demo Video
Brain-Trace μ†Œκ°œ Brain-Trace Demo

πŸ“Š μ‹œμŠ€ν…œ ꡬ쑰 νŒ¨λ„ 보기 (ν΄λ¦­ν•΄μ„œ 펼치기)

mu_mu

πŸ”— μ°Έκ³  자료


πŸ‘₯ νŒ€μ› μ†Œκ°œ

이름 μ—­ν•  λ‹΄λ‹Ή 업무
μ •μ›… νŒ€μž₯ / Full-stack & AI ν”„λ‘œμ νŠΈ 총괄, ν”„λ‘ νŠΈμ—”λ“œ 개발, λ°±μ—”λ“œ 둜직 섀계 및 API 연동,
AI 및 Graph DB 연동
κΉ€λ™ν˜ Back-End FastAPI 기반 API 개발, 검색/λ‹΅λ³€/μ§€μ‹κ·Έλž˜ν”„ 생성 둜직 개발,
Graph DB & SQLite 섀계
μ•ˆμ˜ˆμ°¬ Full-stack νŒ¨λ„ 및 μ†ŒμŠ€ λ·°μ–΄ 개발, 둜컬 DB 연동, λ°±μ—”λ“œ API κ΅¬ν˜„ λ“± 전체 μ‹œμŠ€ν…œ UI/μ„œλ²„ 톡합 개발
μœ μ •κ·  AI AI λͺ¨λΈ μ–‘μžν™” 및 κ²½λŸ‰ν™”

πŸ“ƒ λΌμ΄μ„ μŠ€

Copyright (c) 2025 Brain-Trace Team
All rights reserved.

This code is provided for academic, non-commercial use only.
Redistribution and use in source and binary forms, with or without modification,
are permitted for academic non-commercial use provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation and/or
   other materials provided with the distribution.

This software is provided by the authors "as is" and any express or implied warranties,
including, but not limited to, the implied warranties of merchantability and fitness
for a particular purpose are disclaimed. In no event shall the authors be liable
for any direct, indirect, incidental, special, exemplary, or consequential damages
(including, but not limited to, procurement of substitute goods or services;
loss of use, data, or profits; or business interruption) however caused and on
any theory of liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this software,
even if advised of the possibility of such damage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •