René's URL Explorer Experiment


Title: GitHub - timerring/rag101: LangChain and RAG best practices

Open Graph Title: GitHub - timerring/rag101: LangChain and RAG best practices

X Title: GitHub - timerring/rag101: LangChain and RAG best practices

Description: LangChain and RAG best practices. Contribute to timerring/rag101 development by creating an account on GitHub.

Open Graph Description: LangChain and RAG best practices. Contribute to timerring/rag101 development by creating an account on GitHub.

X Description: LangChain and RAG best practices. Contribute to timerring/rag101 development by creating an account on GitHub.

Opengraph URL: https://github.com/timerring/rag101

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:e0ca91ba-195c-0105-f29f-72fbf3b7d445
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idDB94:1860A8:1984D0B:232D658:696AA1F4
html-safe-nonce62a38655a1899e34e658c105d7e0847b2690c2475b2485244e5f2d1dfe823e0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjk0OjE4NjBBODoxOTg0RDBCOjIzMkQ2NTg6Njk2QUExRjQiLCJ2aXNpdG9yX2lkIjoiMTI3NTQ2MDU2OTc1NzU1NzIzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfeb838ba0d104f197a441cfe81d88c2017d4bb1b165511af7e9886dd5eabc304
hovercard-subject-tagrepository:942758646
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/timerring/rag101
twitter:imagehttps://opengraph.githubassets.com/510476126d8f69f8133dbafdc7c7b147d21df5c15a45e3ad465eb798a5360dcf/timerring/rag101
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/510476126d8f69f8133dbafdc7c7b147d21df5c15a45e3ad465eb798a5360dcf/timerring/rag101
og:image:altLangChain and RAG best practices. Contribute to timerring/rag101 development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261
turbo-cache-controlno-preview
go-importgithub.com/timerring/rag101 git https://github.com/timerring/rag101.git
octolytics-dimension-user_id89397553
octolytics-dimension-user_logintimerring
octolytics-dimension-repository_id942758646
octolytics-dimension-repository_nwotimerring/rag101
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942758646
octolytics-dimension-repository_network_root_nwotimerring/rag101
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4bd0eac606c70914085176ef312ebdcd97a8cdf1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/timerring/rag101#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftimerring%2Frag101
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftimerring%2Frag101
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=timerring%2Frag101
Reloadhttps://github.com/timerring/rag101
Reloadhttps://github.com/timerring/rag101
Reloadhttps://github.com/timerring/rag101
timerring https://github.com/timerring
rag101https://github.com/timerring/rag101
Notifications https://github.com/login?return_to=%2Ftimerring%2Frag101
Fork 0 https://github.com/login?return_to=%2Ftimerring%2Frag101
Star 8 https://github.com/login?return_to=%2Ftimerring%2Frag101
blog.timerring.com/posts/langchain-and-rag-best-practices/https://blog.timerring.com/posts/langchain-and-rag-best-practices/
MIT license https://github.com/timerring/rag101/blob/main/LICENSE
8 stars https://github.com/timerring/rag101/stargazers
0 forks https://github.com/timerring/rag101/forks
Branches https://github.com/timerring/rag101/branches
Tags https://github.com/timerring/rag101/tags
Activity https://github.com/timerring/rag101/activity
Star https://github.com/login?return_to=%2Ftimerring%2Frag101
Notifications https://github.com/login?return_to=%2Ftimerring%2Frag101
Code https://github.com/timerring/rag101
Issues 0 https://github.com/timerring/rag101/issues
Pull requests 0 https://github.com/timerring/rag101/pulls
Actions https://github.com/timerring/rag101/actions
Projects 0 https://github.com/timerring/rag101/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/timerring/rag101/security
Please reload this pagehttps://github.com/timerring/rag101
Insights https://github.com/timerring/rag101/pulse
Code https://github.com/timerring/rag101
Issues https://github.com/timerring/rag101/issues
Pull requests https://github.com/timerring/rag101/pulls
Actions https://github.com/timerring/rag101/actions
Projects https://github.com/timerring/rag101/projects
Security https://github.com/timerring/rag101/security
Insights https://github.com/timerring/rag101/pulse
Brancheshttps://github.com/timerring/rag101/branches
Tagshttps://github.com/timerring/rag101/tags
https://github.com/timerring/rag101/branches
https://github.com/timerring/rag101/tags
3 Commitshttps://github.com/timerring/rag101/commits/main/
https://github.com/timerring/rag101/commits/main/
conversational_retrieval_chainhttps://github.com/timerring/rag101/tree/main/conversational_retrieval_chain
conversational_retrieval_chainhttps://github.com/timerring/rag101/tree/main/conversational_retrieval_chain
embeddingshttps://github.com/timerring/rag101/tree/main/embeddings
embeddingshttps://github.com/timerring/rag101/tree/main/embeddings
loaderhttps://github.com/timerring/rag101/tree/main/loader
loaderhttps://github.com/timerring/rag101/tree/main/loader
question_answeringhttps://github.com/timerring/rag101/tree/main/question_answering
question_answeringhttps://github.com/timerring/rag101/tree/main/question_answering
retrievalhttps://github.com/timerring/rag101/tree/main/retrieval
retrievalhttps://github.com/timerring/rag101/tree/main/retrieval
splitterhttps://github.com/timerring/rag101/tree/main/splitter
splitterhttps://github.com/timerring/rag101/tree/main/splitter
vectorstoreshttps://github.com/timerring/rag101/tree/main/vectorstores
vectorstoreshttps://github.com/timerring/rag101/tree/main/vectorstores
LICENSEhttps://github.com/timerring/rag101/blob/main/LICENSE
LICENSEhttps://github.com/timerring/rag101/blob/main/LICENSE
README.mdhttps://github.com/timerring/rag101/blob/main/README.md
README.mdhttps://github.com/timerring/rag101/blob/main/README.md
requirements.txthttps://github.com/timerring/rag101/blob/main/requirements.txt
requirements.txthttps://github.com/timerring/rag101/blob/main/requirements.txt
READMEhttps://github.com/timerring/rag101
MIT licensehttps://github.com/timerring/rag101
https://github.com/timerring/rag101#langchain-and-rag-best-practices
https://github.com/timerring/rag101#introduction
Langchain chat with your datahttps://learn.deeplearning.ai/courses/langchain-chat-with-your-data/lesson/snupv/introduction?courseName=langchain-chat-with-your-data
rag101 repositoryhttps://github.com/timerring/rag101/
https://github.com/timerring/rag101#langchain
https://github.com/timerring/rag101#prompt
https://github.com/timerring/rag101#models
https://github.com/timerring/rag101#indexes
https://github.com/timerring/rag101#chains
https://github.com/timerring/rag101#agents
https://github.com/timerring/rag101#rag-process
https://github.com/timerring/rag101#vector-store-loading
https://github.com/timerring/rag101#retrieval-augmented-generation
https://camo.githubusercontent.com/c2acfa6efbd8d0255414a93e534afba4427f05286b995761f07b6bdc4651d6d1/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32302d33332d34342e706e67
https://github.com/timerring/rag101#loaders
https://camo.githubusercontent.com/5e44227262b3e733f784153f3acd3d2a86a412eebe22cfb787165a3c0b751cd0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32302d33372d34342e706e67
official docshttps://python.langchain.com/api_reference/community/document_loaders.html#module-langchain_community.document_loaders
herehttps://github.com/timerring/rag101/tree/main/loader
https://github.com/timerring/rag101#pdf
https://github.com/timerring/rag101#web-base-loader
https://github.com/timerring/rag101#splitters
https://github.com/timerring/rag101#why-split
https://github.com/timerring/rag101#type-of-splitters
docshttps://python.langchain.com/api_reference/text_splitters/index.html#module-langchain_text_splitters
https://github.com/timerring/rag101#example-charactertextsplitter-and-recursivecharactertextsplitter
herehttps://github.com/timerring/rag101/blob/main/splitter/text_splitter.py
https://github.com/timerring/rag101#vectorstores-and-embeddings
https://camo.githubusercontent.com/e6ab30aa5a2d786bed2b2f11e6b177e9a79a461283fe3366e49bdb4b143dfe08/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32322d33302d33382e706e67
https://github.com/timerring/rag101#embeddings
https://camo.githubusercontent.com/a156951315c2414a8ebffe1a546316980c78960d7166bafa24ab3ee8ceaf0fa0/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32322d33352d33382e706e67
https://camo.githubusercontent.com/d2d8afdbe82f78e8de16facbcf81fb0ea728e5ad30fdd17493b0cfd5347ed294/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32322d33362d34382e706e67
https://github.com/timerring/rag101#vector-stores
https://camo.githubusercontent.com/c90b50ce1aafe67aced2e7b4128155b1be9e8745903584977fece92b71393a96/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32322d33372d33352e706e67
https://camo.githubusercontent.com/e7f652d46597a2c3acc6f5375d87b0f806c13b19a6145c0247d347e9a0891abe/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30332d32322d34312d32322e706e67
https://github.com/timerring/rag101#practice
https://github.com/timerring/rag101#embeddings-1
herehttps://github.com/timerring/rag101/blob/main/embeddings/zhipu.py
docshttps://python.langchain.com/api_reference/community/embeddings.html#module-langchain_community.embeddings
https://github.com/timerring/rag101#vector-stores-1
herehttps://github.com/timerring/rag101/blob/main/vectorstores/chroma.py
https://github.com/timerring/rag101#retrieval
https://camo.githubusercontent.com/7519516513fb4decdc5356f286fc8ae0ca9fc97a7e37288d4f1eb06e473cb1c5/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32302d35382d31342e706e67
https://github.com/timerring/rag101#similarity-search
https://github.com/timerring/rag101#practice-1
https://github.com/timerring/rag101#maximum-marginal-relevance-mmr
https://camo.githubusercontent.com/5fa19329a191d32cf707b2bafd97355ae76b270ec63b5a4d03fce937729d9815/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32312d31342d35342e706e67
https://camo.githubusercontent.com/bb1fe92c0bff6329741ffae13976e6b2a04ac448f1882dcfeb80244ef594ce33/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32312d32312d30322e706e67
https://github.com/timerring/rag101#practice-2
retrieval/mmr.py filehttps://github.com/timerring/rag101/blob/main/retrieval/mmr.py
https://github.com/timerring/rag101#metadata
https://github.com/timerring/rag101#practice-3
herehttps://github.com/timerring/rag101/blob/main/retrieval/metadata.py
https://github.com/timerring/rag101#llm-aided-retrieval
https://github.com/timerring/rag101#selfqueryretriever
https://camo.githubusercontent.com/526d79fca0ee24fe317c5f1a5fbee65ffc471a8f02bd9a3e60e759612440b0ca/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32332d34342d30312e706e67
https://github.com/timerring/rag101#practice-4
https://github.com/timerring/rag101#compression
https://camo.githubusercontent.com/bdce3de715cde4eb39ebc877d213ab0cc425c500f19643b1ec923312aae606e5/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32332d35302d32342e706e67
https://github.com/timerring/rag101#practice-5
https://github.com/timerring/rag101#question-answering
https://camo.githubusercontent.com/aea5bbd3691fe1635021c1c3e55eb1d86ae9a61f99f11b9075b21439c8db2beb/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32322d30332d33352e706e67
https://github.com/timerring/rag101#retrievalqa-chain
https://camo.githubusercontent.com/e33e854830ba33193feac6df88c2c0497959895d646ef820b820e3a0c7c05003/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32322d30392d33332e706e67
https://github.com/timerring/rag101#map_reduce
https://camo.githubusercontent.com/7f63d1909381a7ee263ae4eee88b7cb339b983f08f51249a83f54f58165f5458/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32322d31352d31362e706e67
https://github.com/timerring/rag101#refine
https://camo.githubusercontent.com/6ee169bc300c6d683e65f140891e80cc367013c9830820337b6471c56b277c90/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32322d31382d31332e706e67
https://github.com/timerring/rag101#map_rerank
https://camo.githubusercontent.com/0da7bb6726ccd0b2b0adb9ad4003a6286249dd1233e91defb40b626e4e7f2887/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32322d31382d35382e706e67
https://github.com/timerring/rag101#practice-6
herehttps://github.com/timerring/rag101/tree/main/question_answering
https://github.com/timerring/rag101#conversational-retrieval-chain
https://camo.githubusercontent.com/91dca9e160e0b60d3b5cf4a527d82100c272ed049401c8ced821ff37abf0c3b1/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32332d33372d32302e706e67
https://camo.githubusercontent.com/db2bc4007004824876282e511c42e81ad0306783ab44f53ce7a51259ed0c427c/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f74696d657272696e672f73637261746368706164323032332f323032342f323032352d30332d30342d32332d34302d31312e706e67
https://github.com/timerring/rag101#memory
https://github.com/timerring/rag101#practice-7
herehttps://github.com/timerring/rag101/blob/main/conversational_retrieval_chain/conversational_retrieval_chain.py
blog.timerring.com/posts/langchain-and-rag-best-practices/https://blog.timerring.com/posts/langchain-and-rag-best-practices/
chat https://github.com/topics/chat
101 https://github.com/topics/101
rag https://github.com/topics/rag
langchain https://github.com/topics/langchain
Readme https://github.com/timerring/rag101#readme-ov-file
MIT license https://github.com/timerring/rag101#MIT-1-ov-file
Please reload this pagehttps://github.com/timerring/rag101
Activityhttps://github.com/timerring/rag101/activity
8 starshttps://github.com/timerring/rag101/stargazers
1 watchinghttps://github.com/timerring/rag101/watchers
0 forkshttps://github.com/timerring/rag101/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Ftimerring%2Frag101&report=timerring+%28user%29
Releaseshttps://github.com/timerring/rag101/releases
Packages 0https://github.com/users/timerring/packages?repo_name=rag101
Please reload this pagehttps://github.com/timerring/rag101
Python 100.0% https://github.com/timerring/rag101/search?l=python
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.