poetry install --no-rootHugging Face Token: Replace "your_huggingface_token_here" with your actual Hugging Face access token.
Model Configuration: Language Model (llm): Provider: huggingface Model: deepseek-ai/DeepSeek-R1 Top P: Controls the diversity of the generated outputs (higher values lead to more diverse results). Embedder: Provider: huggingface Model: sentence-transformers/all-MiniLM-L6-v2 for generating embeddings. Chunker: Chunk Size: The size of text chunks to be created from larger documents (set to 2000). Chunk Overlap: The number of overlapping tokens between chunks (set to 50). Length Function: The method used to determine the length of each chunk (set to len). Min Chunk Size: The minimum allowed size for a chunk to ensure meaningful data is maintained (set to 51).
Document Types: The application supports adding documents in PDF ,Json, URL and CSV formats. You can uncomment the CSV line to add a CSV file as well.
This FastAPI application provides an interface for interacting with an Embedchain instance, which is used to process natural language queries. It also includes functionality for uploading files (PDF , JSON and CSV) to Embedchain's ChromaDB.
chatbot interface in Streamlit that automatically handles multiple sessions, allowing users to chat with an assistant. The application interacts with a FastAPI endpoint to retrieve responses for user queries and automatically persists the chat history.
poetry run python llm.pypoetry run streamlit run app.pyWe use requirements.txt instead of poetry in the dockerization because the image size is lighter !
This documentation describes the workflow for defining, building, and deploying Docker images for projects using Kubernetes.
-
Define a Dockerfile for each project:
- Create a
Dockerfilein the root directory of the project to specify the container image configuration. - The
Dockerfileshould include all dependencies and application runtime configurations.
- Create a
-
Push the Docker image to Docker Hub:
- Build the Docker image locally or in a CI/CD pipeline.
- Tag the image with the appropriate repository and version.
- Push the image to the designated Docker Hub registry.
-
Organize Kubernetes deployment:
- Store Kubernetes manifests (e.g., deployment, service, config maps) under the
k8s/folder folder within the project directory.
- Store Kubernetes manifests (e.g., deployment, service, config maps) under the

