Public Notes
Browse publicly shared notes from the community
I. CREATE OWN NAMESPACE# File: test-namespace.yamlapiVersion: v1kind: Namespacemetadata: name: testCreation:~#kubectl apply -f test-namespace.yamlResu
I. CREATE OWN NAMESPACE# File: test-namespace.yamlapiVersion: v1kind: Namespacemetadata: name: testCreation:~#kubectl apply -f test-namespace.yamlResu
I. CREATE DOCKER CONTAINER request_fixture |├── requirements.txt├── locator.py├── base.py├── source.py├── action.py├── conftest.py├── request_class.py
I. CREATE DOCKER CONTAINER request_fixture |├── requirements.txt├── locator.py├── base.py├── source.py├── action.py├── conftest.py├── request_class.py
CLI LAUNCH:### CLI Output:(venv)[<...>request_fixture]$ pytest -s -v request_class.py
CLI LAUNCH:### CLI Output:(venv)[<...>request_fixture]$ pytest -s -v request_class.py
Your Go program is a minimal Retrieval-Augmented Generation (RAG) server built with:- Ollama → runs the LLM (Llama 3 in your case) - ChromaDB → store
Your Go program is a minimal Retrieval-Augmented Generation (RAG) server built with:- Ollama → runs the LLM (Llama 3 in your case) - ChromaDB → store
RUNNING$go run main.goVERIFICATION1. If Ollama and ChromaDB connected REQUEST:curl -X POST http://localhost:8080/ask \ -H "Content-Type: application
RUNNING$go run main.goVERIFICATION1. If Ollama and ChromaDB connected REQUEST:curl -X POST http://localhost:8080/ask \ -H "Content-Type: application
Here’s a clear, structured explanation of your project so you fully understand how each part works together. I’ll walk through the flow from models →
Here’s a clear, structured explanation of your project so you fully understand how each part works together. I’ll walk through the flow from models →
RUNNING$ go run main.goTESTINGPOST$ curl -X POST http://localhost:8080/users/ \-H "Content-Type: application/json" \-d '{"name": "bob", "email": "bob@
RUNNING$ go run main.goTESTINGPOST$ curl -X POST http://localhost:8080/users/ \-H "Content-Type: application/json" \-d '{"name": "bob", "email": "bob@
.├── main.go ├── database/│ └── mongodb.go ├── models/│ └── user.go └── repository/ └── user_repo.go
.├── main.go ├── database/│ └── mongodb.go ├── models/│ └── user.go └── repository/ └── user_repo.go
Here’s a clear, structured explanation of how your FastAPI + MongoDB app works, piece by piece, so you can see how every file fits together and how th
Here’s a clear, structured explanation of how your FastAPI + MongoDB app works, piece by piece, so you can see how every file fits together and how th
RUNNING:# File: "requirements.txt"fastapiuvicornpymongopydantic$ pip install -r requirements.txt$ uvicorn main:app --reloadTESTING:POST /data{"data":
RUNNING:# File: "requirements.txt"fastapiuvicornpymongopydantic$ pip install -r requirements.txt$ uvicorn main:app --reloadTESTING:POST /data{"data":