Microflow-Cytometry / config.py
MalikShehram's picture
Update config.py
5bed404 verified
Raw History Blame Contribute Delete
2.48 kB
"""
Configuration file for the Microflow Cytometry RAG Application
"""
import os
from pathlib import Path
# Project paths
BASE_DIR = Path(__file__).parent
PAPERS_DIR = BASE_DIR / "papers"
VECTOR_STORE_DIR = BASE_DIR / "vector_store"
# Create directories if they don't exist
PAPERS_DIR.mkdir(exist_ok=True)
VECTOR_STORE_DIR.mkdir(exist_ok=True)
# PDF Documents
PDF_FILES = [
"cimb-46-00476.pdf", # MDS & Microflow Cytometry Review
"Micro_Optical_Tech_Letters_2011_Watts.pdf", # Bowtie Beam Shaping
"micromachines-12-00433.pdf", # SARS-CoV-2 MCIA
]
# Document metadata (for citation and filtering)
DOCUMENT_METADATA = {
"cimb-46-00476.pdf": {
"title": "Advances in Microflow Cytometry-Based Molecular Detection Methods for Improved Future MDS Cancer Diagnosis",
"authors": "Gonsalves, M.; Escobar, A.; Altarabishi, A.D.; Xu, C.-Q.",
"journal": "Current Issues in Molecular Biology",
"year": 2024,
"doi": "10.3390/cimb46080476",
"topics": ["MDS", "microflow cytometry", "leukemia", "biomarkers", "scoring systems"],
"type": "review"
},
"Micro_Optical_Tech_Letters_2011_Watts.pdf": {
"title": "Formation of Bowtie-Shaped Excitation in a Photonic-Microfluidic Integrated Device",
"authors": "Watts, B.R.; Kowpak, T.; Zhang, Z.; Xu, C.-Q.; Zhu, S.",
"journal": "Microwave and Optical Technology Letters",
"year": 2011,
"doi": "10.1002/mop.26309",
"topics": ["beam shaping", "planar waveguides", "photonic integration", "optics", "SU-8"],
"type": "research"
},
"micromachines-12-00433.pdf": {
"title": "A Microflow Cytometry-Based Agglutination Immunoassay for Point-of-Care Quantitative Detection of SARS-CoV-2 IgM and IgG",
"authors": "Qu, J.; Chenier, M.; Zhang, Y.; Xu, C.-Q.",
"journal": "Micromachines",
"year": 2021,
"doi": "10.3390/mi12040433",
"topics": ["immunoassay", "SARS-CoV-2", "point-of-care", "transit time", "agglutination"],
"type": "research"
}
}
# Chunking parameters
CHUNK_SIZE = 800
CHUNK_OVERLAP = 150
# Retrieval parameters
TOP_K = 6
SIMILARITY_THRESHOLD = 0.3
# Embedding model (HuggingFace - Free)
EMBEDDING_MODEL = "sentence-transformers/all-MiniLM-L6-v2"
# LLM Configuration (Groq)
LLM_MODEL = "llama-3.3-70b-versatile"
LLM_TEMPERATURE = 0.2
LLM_MAX_TOKENS = 2048
# Vector store index name
INDEX_NAME = "microflow_cytometry_index"