GetNotes Tools
sourcebot-dev/sourcebot
Tool นี้คืออะไร
Sourcebot เป็นเครื่องมือแบบ self-hosted ที่ช่วยให้นักพัฒนาเข้าใจโค้ดเบสของตนเองได้ง่ายขึ้น ด้วยความสามารถในการถามคำถามเกี่ยวกับโค้ด, ค้นหา, และนำทางโค้ดอย่างรวดเร็วและมีประสิทธิภาพ
ข้อมูลโปรเจกต์
ดาว
3.6K
Forks
324
License
ไม่ระบุ
อัปเดต GitHub ล่าสุด
18 ก.ค. 2569
เพิ่มใน GetNotes
20 ก.ค. 2569
Repository
sourcebot-dev/sourcebot
แปลและเรียบเรียงโดย AI
เนื้อหาฉบับภาษาไทย
ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง
Sourcebot เป็นเครื่องมือแบบ self-hosted ที่ช่วยให้คุณเข้าใจโค้ดเบสของคุณ
- ถาม Sourcebot: ถามคำถามเกี่ยวกับโค้ดเบสของคุณ และให้ Sourcebot ให้คำตอบโดยละเอียดพร้อมการอ้างอิงแบบอินไลน์
- ค้นหาโค้ด: ค้นหาและนำทางข้ามทุก repo และ branch ของคุณ ไม่ว่าจะโฮสต์อยู่ที่ใด
ลองใช้ได้ใน เดโมสาธารณะ ของเรา!
https://github.com/user-attachments/assets/ed66a622-e38f-4947-a531-86df1e1e0218
คุณสมบัติ
ถาม Sourcebot
Ask Sourcebot ช่วยให้คุณสามารถถามคำถามที่ซับซ้อนเกี่ยวกับโค้ดเบสของคุณด้วยภาษาธรรมชาติ
มันใช้เครื่องมือค้นหาและนำทางโค้ดที่มีอยู่ของ Sourcebot เพื่อให้โมเดลการให้เหตุผลสามารถค้นหาโค้ดของคุณ, ติดตามการอ้างอิงการนำทางโค้ด, และให้คำตอบที่สมบูรณ์ด้วยการอ้างอิงแบบอินไลน์และโค้ดสนิปเปตที่สามารถนำทางได้
https://github.com/user-attachments/assets/8212cd16-683f-468f-8ea5-67455c0931e2
ค้นหาโค้ด
ค้นหาข้ามทุก repo/branch ของคุณในทุกแพลตฟอร์มโฮสต์โค้ด รวดเร็วอย่างเหลือเชื่อ และรองรับ regular expressions, ตัวกรองการค้นหา repo/ภาษา, ตรรกะแบบบูลีน และอื่นๆ
https://github.com/user-attachments/assets/3b381452-d329-4949-b6f2-2fc38952e481
การนำทางโค้ด
การนำทางโค้ดระดับ IDE (goto definition และ find references) ข้ามทุก repo ของคุณ
https://github.com/user-attachments/assets/e2da2829-71cc-40af-98b4-7ba52e945530
File Explorer ในตัว
สำรวจทุกไฟล์ในทุก repo ของคุณ UI ที่ทันสมัยพร้อมการเน้นไวยากรณ์, file tree, การนำทางโค้ด และอื่นๆ
https://github.com/user-attachments/assets/31ec0669-707d-4e03-b511-1bc33d44197a
ติดตั้ง Sourcebot
Sourcebot สามารถติดตั้งได้ในไม่กี่วินาทีโดยใช้ Docker Compose เยี่ยมชม เอกสาร ของเราสำหรับข้อมูลเพิ่มเติม
- 1ดาวน์โหลดไฟล์
docker-compose.yml
curl -o docker-compose.yml https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml- 1ในไดเรกทอรีเดียวกับไฟล์
docker-compose.ymlให้สร้าง ไฟล์การกำหนดค่า ไฟล์การกำหนดค่าเป็นไฟล์ JSON ที่กำหนดค่าพฤติกรรมของ Sourcebot รวมถึง repo ที่จะจัดทำดัชนี, ผู้ให้บริการโมเดลภาษา, ผู้ให้บริการการรับรองความถูกต้อง และอื่นๆ
echo '{
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
// Comments are supported.
// This config creates a single connection to GitHub.com that
// indexes the Sourcebot repository
"connections": {
"starter-connection": {
"type": "github",
"repos": [
"sourcebot-dev/sourcebot"
]
}
}
}' > config.json- 1อัปเดต secrets ใน
docker-compose.ymlจากนั้นรัน Sourcebot โดยใช้:
docker compose up- 1เยี่ยมชม
http://localhost:3000เพื่อเริ่มใช้ Sourcebot
หากต้องการกำหนดค่า Sourcebot (จัดทำดัชนี repo ของคุณเอง, เชื่อมต่อ LLM ของคุณ ฯลฯ) โปรดดู เอกสาร ของเรา
Sourcebot รวบรวม ข้อมูลการใช้งานที่ไม่ระบุตัวตน โดยค่าเริ่มต้นเพื่อช่วยเราปรับปรุงผลิตภัณฑ์ ไม่มีการรวบรวมข้อมูลที่ละเอียดอ่อน แต่หากคุณต้องการปิดใช้งาน คุณสามารถทำได้โดยการตั้งค่าตัวแปรสภาพแวดล้อม SOURCEBOT_TELEMETRY_DISABLED เป็น true โปรดดู เอกสาร telemetry ของเราสำหรับข้อมูลเพิ่มเติม
สร้างจาก Source
การสร้างจาก source จำเป็นเฉพาะในกรณีที่คุณต้องการมีส่วนร่วม หากคุณต้องการใช้ Sourcebot เท่านั้น เราขอแนะนำให้ดู เอกสาร การโฮสต์ด้วยตนเองของเรา
หากคุณต้องการสร้างจาก source โปรดดูไฟล์ CONTRIBUTING.md สำหรับข้อมูลเพิ่มเติม
เอกสารโปรเจกต์
อ่านเอกสารต้นฉบับ
README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

Sourcebot is a self-hosted tool that helps you understand your codebase.
- Ask Sourcebot: Ask questions about your codebase and have Sourcebot provide detailed answers grounded with inline citations.
- Code search: Search and navigate across all your repos and branches, no matter where they’re hosted.
Try it out in our public demo!
https://github.com/user-attachments/assets/ed66a622-e38f-4947-a531-86df1e1e0218
Features
Ask Sourcebot
Ask Sourcebot gives you the ability to ask complex questions about your codebase in natural language.
It uses Sourcebot's existing code search and navigation tools to allow reasoning models to search your code, follow code nav references, and provide an answer that's rich with inline citations and navigable code snippets.
https://github.com/user-attachments/assets/8212cd16-683f-468f-8ea5-67455c0931e2
Code Search
Search across all your repos/branches across any code host platform. Blazingly fast, and supports regular expressions, repo/language search filters, boolean logic, and more.
https://github.com/user-attachments/assets/3b381452-d329-4949-b6f2-2fc38952e481
Code Navigation
IDE-level code navigation (goto definition and find references) across all your repos.
https://github.com/user-attachments/assets/e2da2829-71cc-40af-98b4-7ba52e945530
Built-in File Explorer
Explore every file across all of your repos. Modern UI with syntax highlighting, file tree, code navigation, etc.
https://github.com/user-attachments/assets/31ec0669-707d-4e03-b511-1bc33d44197a
Deploy Sourcebot
Sourcebot can be deployed in seconds using Docker Compose. Visit our docs for more information.
- 1Download the docker-compose.yml file
curl -o docker-compose.yml https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml- 1In the same directory as the
docker-compose.ymlfile, create a configuration file. The configuration file is a JSON file that configures Sourcebot's behaviour, including what repositories to index, language model providers, auth providers, and more.
echo '{
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
// Comments are supported.
// This config creates a single connection to GitHub.com that
// indexes the Sourcebot repository
"connections": {
"starter-connection": {
"type": "github",
"repos": [
"sourcebot-dev/sourcebot"
]
}
}
}' > config.json- 1Update the secrets in the
docker-compose.ymland then run Sourcebot using:
docker compose up- 1Visit
http://localhost:3000to start using Sourcebot
To configure Sourcebot (index your own repos, connect your LLMs, etc), check out our docs.
Sourcebot collects anonymous usage data by default to help us improve the product. No sensitive data is collected, but if you'd like to disable this you can do so by setting the SOURCEBOT_TELEMETRY_DISABLED environment
variable to true. Please refer to our telemetry docs for more information.
Build from source
Building from source is only required if you'd like to contribute. If you'd just like to use Sourcebot, we recommend checking out our self-hosting docs.
If you'd like to build from source, please checkout the CONTRIBUTING.md file for more information.
