ภาพรวมที่เก็บข้อมูล
พื้นที่เก็บข้อมูลนี้แสดงให้เห็นถึงการรวมกันของ Chroma DB ซึ่งเป็นฐานข้อมูลเวกเตอร์ที่มีแบบจำลองการฝังเพื่อพัฒนาระบบ Augmented Generation (RAG) ที่แข็งแกร่ง
ตัวเลือกรุ่นฝังตัวเลือก
การรวม RANKER ใหม่ (HTTP, GRPC)
เพื่อเพิ่มความแม่นยำของผ้าขี้ริ้วเราสามารถรวมโมเดล HuggingFace ใหม่ได้ โมเดลเหล่านี้ประเมินความคล้ายคลึงกันระหว่างการสืบค้นและผลลัพธ์การสืบค้นที่ได้รับจาก vectordb อันดับ RANKER จัดอันดับผลลัพธ์โดยดัชนีเพื่อให้มั่นใจว่าข้อมูลที่ดึงมานั้นมีความเกี่ยวข้องและถูกต้องตามบริบท
Example:
query := " What is Deep Learning? "
retrievedResults := []string{ " Tomatos are fruits... " , " Deep Learning is not... " , " Deep learning is... " }
Response: [{ " index " :2, " score " :0.9987814},{ " index " :1, " score " :0.022949383},{ " index " :0, " score " :0.000076250595}]พื้นที่เก็บข้อมูลนี้แสดงให้เห็นถึงวิธีการรวมการฝังและการวิ่งใหม่เพื่อพัฒนาระบบผ้าขี้ริ้ว
ตั้งค่าฐานข้อมูลเวกเตอร์ :
เอกสารประมวลผลล่วงหน้า :
จัดเก็บ Embeddings :
การประมวลผลแบบสอบถาม :
รวมเข้ากับผู้ให้บริการ LLM :
สร้างเทมเพลตพรอมต์ :
ดำเนินการกับ LLM :
สิ่งนี้ช่วยให้สามารถปรับปรุงงานการประมวลผลภาษาโดยใช้ประโยชน์จากพลังของฐานข้อมูลเวกเตอร์และโมเดลการฝังขั้นสูง
<|user|> what is mirostat_tau?</s>:-
Based on the provided content, I can answer your query.
** Query Result: ** Mirostat_tau Controls the balance between coherence and diversity of the output. A lower value will result in more focused and coherent text. (Default: 5.0)
** Document Content: **
mirostat_tau Controls the balance between coherence and diversity of the output. A lower value will result in more focused and coherent text. (Default: 5.0)
float
mirostat_tau 5.0
** Additional Information on this Topic: **
Here are three main points related to Mirostat_tau:
1. ** Coherence vs Diversity: ** Mirostat_tau controls the balance between coherence and diversity of the output, which means it determines how focused or creative the generated text will be.
2. ** Lower Values Mean More Focus: ** A lower value for mirostat_tau results in more focused and coherent text, while a higher value allows for more diverse and potentially less coherent output.
3. ** Default Value: ** The default value for Mirostat_tau is 5.0, which means that if no specific value is provided, the model will generate text with a balance between coherence and diversity.
Please note that these points are based solely on the provided content and do not go beyond it.% git clone https://github.com/yourusername/chroma-db.git
cd chroma-dbgo build -o chroma-db cmd/main.go ตรวจสอบให้แน่ใจว่ามีการติดตั้งนักเทียบท่าและนักเทียบท่า ใช้ docker-compose.yaml เพื่อตั้งค่าบริการ Chroma DB
docker-compose up -d./chroma-db
Usage
-load
Load and embed the data in vectordb
Provide the path to file Eg: " test/model_params.txt "
-query
Query the embedded data and rerank the results
Provide the query Eg: " what is the difference between mirostat_tau and mirostat_eta? " cmd/ :
ภายใน/ ค่าคงที่/ :
Docker-compose.yaml : Docker Compose File File สำหรับการตั้งค่าบริการ Chroma DB
ปรับค่าการกำหนดค่าใน internal/constants/constants.go เพื่อให้เหมาะกับความต้องการของคุณ ซึ่งรวมถึงการตั้งค่าเช่น:
chroma db url, ชื่อผู้เช่า, ฐานข้อมูลและเนมสเปซ ประเภทและ URL รุ่น Ollama
< | system | > {{ . SystemPrompt }} < / s >
< | content | > {{ . Content }} < / s >
< | user | > {{ . Prompt }} < / s > เริ่ม Vectordb ด้วยคำสั่งต่อไปนี้:
docker compose upดำเนินการดำเนินการที่เกี่ยวข้องกับการแชท:
go run ./cmd/main.go ค่าการกำหนดค่าเริ่มต้นมีให้ใน internal/constants/constants.go และสามารถปรับได้ตามความต้องการของคุณ บางส่วนของสิ่งเหล่านี้รวมถึง:
ChromaUrl , TenantName , Database , NamespaceOllamaModel และ OllamaUrlโครงการนี้ได้รับใบอนุญาตภายใต้ใบอนุญาต BSD 3 -cluse - ดูไฟล์ใบอนุญาตสำหรับรายละเอียด
สำหรับปัญหาหรือการมีส่วนร่วมใด ๆ โปรดเปิดปัญหาหรือส่งคำขอดึงไปที่ GitHub