{"id":26758208,"url":"https://github.com/ksm26/prompt-compression-and-query-optimization","last_synced_at":"2026-04-19T05:32:23.672Z","repository":{"id":248725356,"uuid":"829525117","full_name":"ksm26/Prompt-Compression-and-Query-Optimization","owner":"ksm26","description":"Enhance the performance and cost-efficiency of large-scale Retrieval Augmented Generation (RAG) applications. Learn to integrate vector search with traditional database operations and apply techniques like prefiltering, postfiltering, projection, and prompt compression.","archived":false,"fork":false,"pushed_at":"2024-07-23T08:45:53.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-24T02:33:59.797Z","etag":null,"topics":["cost-efficiency","data-retrieval","data-retrieval-and-display","data-security","database-operations","developer-advocacy","large-scale-applications","mongodb","performance-optimization","postfiltering","prefiltering","projection","prompt-compression","query-optimization","query-processing","rag-applications","reranking","search-relevance","vector-search","vector-search-engine"],"latest_commit_sha":null,"homepage":"https://www.deeplearning.ai/short-courses/prompt-compression-and-query-optimization/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksm26.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-16T15:52:18.000Z","updated_at":"2024-07-23T08:45:57.000Z","dependencies_parsed_at":"2024-07-22T10:50:44.352Z","dependency_job_id":null,"html_url":"https://github.com/ksm26/Prompt-Compression-and-Query-Optimization","commit_stats":null,"previous_names":["ksm26/prompt-compression-and-query-optimization"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksm26%2FPrompt-Compression-and-Query-Optimization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksm26%2FPrompt-Compression-and-Query-Optimization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksm26%2FPrompt-Compression-and-Query-Optimization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksm26%2FPrompt-Compression-and-Query-Optimization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksm26","download_url":"https://codeload.github.com/ksm26/Prompt-Compression-and-Query-Optimization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246059335,"owners_count":20717085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cost-efficiency","data-retrieval","data-retrieval-and-display","data-security","database-operations","developer-advocacy","large-scale-applications","mongodb","performance-optimization","postfiltering","prefiltering","projection","prompt-compression","query-optimization","query-processing","rag-applications","reranking","search-relevance","vector-search","vector-search-engine"],"created_at":"2025-03-28T16:18:54.356Z","updated_at":"2025-10-30T04:20:03.273Z","avatar_url":"https://github.com/ksm26.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 [Prompt Compression and Query Optimization](https://www.deeplearning.ai/short-courses/prompt-compression-and-query-optimization/)\n\n🔍 Welcome to the \"Prompt Compression and Query Optimization\" course! Course will equip you with the skills to optimize the performance and cost-efficiency of large-scale Retrieval Augmented Generation (RAG) applications by integrating traditional database features with vector search capabilities.\n\n## Course Summary\nIn this course, you'll learn to optimize large-scale RAG applications by integrating vector search capabilities with traditional database operations. Here’s what you can expect to learn and experience:\n\n1. 📋 **Prefiltering and Postfiltering**: Filter results based on specific conditions. Prefiltering is done at the database index creation stage, while postfiltering is applied after the vector search is performed.\n2. 📊 **Projection**: Select a subset of fields returned from a query to minimize the size of the output, enhancing performance and security.\n3. 🔄 **Reranking**: Reorder search results based on other data fields to improve the relevance and quality of information retrieval.\n4. ✂️ **Prompt Compression**: Reduce the length of prompts, which can be expensive to process in large-scale applications, optimizing both performance and cost.\n\n## Key Points\n- 🌐 **Vector Search and Database Operations**: Combine vector search capabilities with traditional database operations to build efficient and cost-effective RAG applications.\n- 🚀 **Optimized Query Processing**: Use prefiltering, postfiltering, and projection techniques for faster query processing and optimized query output.\n- 💡 **Prompt Compression**: Implement prompt compression techniques to reduce the length of prompts, making them more efficient to process in large-scale applications.\n\n## About the Instructor\n🌟 **Richmond Alake** is a Developer Advocate at MongoDB, bringing extensive expertise in database optimization and vector search capabilities to guide you through this course.\n\n🔗 To enroll in the course or for further information, visit [deeplearning.ai](https://www.deeplearning.ai/short-courses/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksm26%2Fprompt-compression-and-query-optimization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksm26%2Fprompt-compression-and-query-optimization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksm26%2Fprompt-compression-and-query-optimization/lists"}