Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Sectional Description #206

Merged
merged 99 commits into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
c9c2373
assests and app name
PrashantDixit0 Feb 6, 2024
433fde0
update README
PrashantDixit0 Feb 6, 2024
306c75e
Merge branch 'lancedb:main' into main
PrashantDixit0 Feb 8, 2024
6f85869
demo gifs
PrashantDixit0 Feb 10, 2024
b7ac9b2
Merge branch 'lancedb:main' into main
PrashantDixit0 Feb 15, 2024
8b66fdd
talk with github codespaces
PrashantDixit0 Feb 15, 2024
55d01de
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Feb 15, 2024
1600106
talk with github codespaces
PrashantDixit0 Feb 15, 2024
5895c96
gitignore
PrashantDixit0 Feb 16, 2024
eb4eae7
linted
PrashantDixit0 Feb 17, 2024
35fd84f
added version
PrashantDixit0 Feb 21, 2024
ef8b2be
link fix
PrashantDixit0 Feb 23, 2024
17cd7f1
link fix
PrashantDixit0 Feb 23, 2024
a561df0
added local llm tag
PrashantDixit0 Feb 25, 2024
4d772a9
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Feb 25, 2024
01d4964
Merge branch 'lancedb:main' into main
PrashantDixit0 Feb 25, 2024
71b6fe2
crag
PrashantDixit0 Feb 25, 2024
dc2f214
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Feb 25, 2024
ea854fa
link fix
PrashantDixit0 Feb 25, 2024
85a8e8b
lint
PrashantDixit0 Feb 25, 2024
c2313fd
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Feb 26, 2024
1750478
llm tags
PrashantDixit0 Feb 26, 2024
f8672ae
non-clickable badge
PrashantDixit0 Feb 27, 2024
3ede6c0
non-clickable badge
PrashantDixit0 Feb 27, 2024
5b00604
non-clickable badge
PrashantDixit0 Feb 27, 2024
e54f95d
fix
PrashantDixit0 Feb 27, 2024
964139b
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Feb 28, 2024
f91482b
tutorial llm tags
PrashantDixit0 Feb 28, 2024
6842b72
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Mar 1, 2024
c2be50b
added instructions and fix
PrashantDixit0 Mar 1, 2024
0ab5372
Merge branch 'lancedb:main' into main
PrashantDixit0 Mar 2, 2024
1e71e1a
colab fix
PrashantDixit0 Mar 2, 2024
a005a42
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Mar 13, 2024
1609b05
fix
PrashantDixit0 Mar 13, 2024
208aa06
formatted
PrashantDixit0 Mar 13, 2024
de5b31d
hybrid search and rag colab
PrashantDixit0 Mar 13, 2024
871d4f0
colab format
PrashantDixit0 Mar 13, 2024
56e5571
python test
PrashantDixit0 Mar 13, 2024
ea0dad6
node test
PrashantDixit0 Mar 13, 2024
f7637a1
python test
PrashantDixit0 Mar 13, 2024
cfefcd9
blog link update
PrashantDixit0 Mar 17, 2024
d549b2c
blog
PrashantDixit0 Mar 17, 2024
6c28504
rag mlx
PrashantDixit0 Mar 20, 2024
732ae4e
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Mar 23, 2024
ff5cdf5
myntra search engine app
PrashantDixit0 Mar 23, 2024
a15c763
link fix
PrashantDixit0 Mar 24, 2024
754413c
CrewAI Example
PrashantDixit0 Mar 27, 2024
3ff4f50
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Mar 27, 2024
ea9badb
lint
PrashantDixit0 Mar 27, 2024
6d93933
node test
PrashantDixit0 Mar 27, 2024
be65606
node test
PrashantDixit0 Mar 27, 2024
538cabc
node test
PrashantDixit0 Mar 27, 2024
27b497b
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Mar 27, 2024
875fdde
Merge branch 'lancedb:main' into main
PrashantDixit0 Mar 31, 2024
297de9c
added readme
PrashantDixit0 Mar 31, 2024
416a71c
Merge branch 'lancedb:main' into main
PrashantDixit0 Apr 5, 2024
5c6f72d
support for Gemini Pro
PrashantDixit0 Apr 5, 2024
fed4be9
fix
PrashantDixit0 Apr 8, 2024
d12eeca
Merge branch 'lancedb:main' into main
PrashantDixit0 Apr 11, 2024
f93218a
chunking techniques
PrashantDixit0 Apr 18, 2024
ec2370a
lint
PrashantDixit0 Apr 18, 2024
f8a9c54
Merge branch 'lancedb:main' into main
PrashantDixit0 Apr 21, 2024
816f1ec
Locally RAG from Scratch
PrashantDixit0 Apr 21, 2024
4c7f42a
lint
PrashantDixit0 Apr 21, 2024
5c20f98
llama3 added
PrashantDixit0 Apr 21, 2024
1801ddd
link finx
PrashantDixit0 Apr 21, 2024
e070896
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Apr 24, 2024
1cec0d8
sdk manual cli chatbot phidata
PrashantDixit0 Apr 24, 2024
c6578cb
sdk manual cli chatbot phidata
PrashantDixit0 Apr 24, 2024
8cee229
link fix
PrashantDixit0 Apr 24, 2024
6b416ab
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Apr 25, 2024
53803a4
tags
PrashantDixit0 Apr 25, 2024
e7a3b1e
advanced
PrashantDixit0 Apr 26, 2024
c272e7a
update readme
PrashantDixit0 Apr 26, 2024
299b14a
Update README
PrashantDixit0 Apr 26, 2024
1b35bf2
remove key
PrashantDixit0 Apr 27, 2024
5cecc19
lint
PrashantDixit0 Apr 27, 2024
886f069
lint
PrashantDixit0 Apr 27, 2024
6b81c5b
link fix
PrashantDixit0 May 13, 2024
2290b4a
broken link fix
PrashantDixit0 May 13, 2024
2095456
formatting fixes
PrashantDixit0 May 26, 2024
5258e6b
formatting fixes
PrashantDixit0 May 26, 2024
c5cce3b
lint
PrashantDixit0 May 26, 2024
b4d9ba5
updated image
PrashantDixit0 May 27, 2024
cfc1138
added demo image
PrashantDixit0 May 27, 2024
e7d7996
change autogen notebook
PrashantDixit0 May 28, 2024
981fea6
lint
PrashantDixit0 May 28, 2024
1b65b84
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 May 28, 2024
3b28aad
lint
PrashantDixit0 May 28, 2024
a3f0404
rag evaluation with ragas
PrashantDixit0 May 29, 2024
735231b
README update
PrashantDixit0 Jun 3, 2024
00483e4
broken link fix
PrashantDixit0 Jun 3, 2024
a023440
Restructured README
PrashantDixit0 Jun 6, 2024
ec82f13
updated titles
PrashantDixit0 Jun 6, 2024
3d549b6
restructed README
PrashantDixit0 Jun 7, 2024
feb8127
changes
PrashantDixit0 Jun 7, 2024
6eccb04
Merge branch 'main' of github.com:PrashantDixit0/vectordb-recipes
PrashantDixit0 Jun 8, 2024
80d2b3a
sectional description
PrashantDixit0 Jun 9, 2024
f8a808f
lint
PrashantDixit0 Jun 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ Examples are available as:

The following examples are organized into different tables to make similar types of examples easily accessible.

### Build from Scratch

Build applications/examples using LanceDB for efficient vector-based document retrieval.

| Build from Scratch    | Interactive Notebook & Scripts   |
|-------- | -------------: |
|||
| [Build RAG from Scratch](./tutorials/RAG-from-Scratch) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/RAG-from-Scratch/RAG_from_Scratch.ipynb) [![LLM](https://img.shields.io/badge/openai-api-white)](#) [![beginner](https://img.shields.io/badge/beginner-B5FF33)](#)| |
| [Local RAG from Scratch with Llama3](./tutorials/Local-RAG-from-Scratch) | [![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](./tutorials/Local-RAG-from-Scratch/rag.py) [![local LLM](https://img.shields.io/badge/local-llm-green)](#) [![beginner](https://img.shields.io/badge/beginner-B5FF33)](#)| |
||||

### MultiModal

Create a multimodal search application using LanceDB for efficient vector-based retrieval of text and image data. Input text or image queries to find the most relevant documents and images from your corpus.

| Multimodal    | Interactive Notebook & Scripts   | Blog |
| --------- | -------------------------- | ----------- |
Expand All @@ -45,7 +52,11 @@ The following examples are organized into different tables to make similar types
| [Multimodal Image + Text Search](/examples/multimodal_search/) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/multimodal_search/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](./examples/multimodal_search/main.py) [![LLM](https://img.shields.io/badge/local-llm-green)](#) [![intermediate](https://img.shields.io/badge/intermediate-FFDA33)](#)| [![Ghost](https://img.shields.io/badge/ghost-000?style=for-the-badge&logo=ghost&logoColor=%23F7DF1E)](https://blog.lancedb.com/multi-modal-ai-made-easy-with-lancedb-clip-5aaf8801c939/)|
||||

| RAG &nbsp; &nbsp;| Interactive Notebook & Scripts &nbsp; | Blog |
### RAG

Develop a Retrieval-Augmented Generation (RAG) application using LanceDB for efficient vector-based information retrieval. Input text queries to retrieve relevant documents and generate comprehensive answers by combining retrieved information.

| RAG &nbsp; &nbsp;| Interactive Notebook & Scripts | Blog |
| --------- | -------------------------- | ----------- |
||||
| [Improve RAG with Re-ranking](/examples/RAG_Reranking/) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RAG_Reranking/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![LLM](https://img.shields.io/badge/local-llm-green)](#) [![beginner](https://img.shields.io/badge/beginner-B5FF33)](#)|[![Ghost](https://img.shields.io/badge/ghost-000?style=for-the-badge&logo=ghost&logoColor=%23F7DF1E)](https://blog.lancedb.com/simplest-method-to-improve-rag-pipeline-re-ranking-cf6eaec6d544)|
Expand All @@ -60,6 +71,9 @@ The following examples are organized into different tables to make similar types
| [RAG Fusion](/examples/RAG_Fusion/) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RAG_Fusion/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![LLM](https://img.shields.io/badge/openai-api-white)](#) [![advanced](https://img.shields.io/badge/advanced-FF3333)](#)|
||||

### Vector Search

Build a vector search application using LanceDB for efficient vector-based document retrieval. Input text queries to find the most relevant documents from your corpus.

| Vector Search &nbsp; &nbsp;| Interactive Notebook & Scripts &nbsp; | Blog |
| --------- | -------------------------- | ----------- |
Expand All @@ -77,6 +91,10 @@ The following examples are organized into different tables to make similar types
| [Accelerate Vector Search Applications Using OpenVINO](/examples/Accelerate-Vector-Search-Applications-Using-OpenVINO/) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Accelerate-Vector-Search-Applications-Using-OpenVINO/clip_text_image_search.ipynb) [![local LLM](https://img.shields.io/badge/local-llm-green)](#) [![advanced](https://img.shields.io/badge/advanced-FF3333)](#)| [![Ghost](https://img.shields.io/badge/ghost-000?style=for-the-badge&logo=ghost&logoColor=%23F7DF1E)](https://blog.lancedb.com/accelerate-vector-search-applications-using-openvino-lancedb/)|
||||

### Chatbot

Create a chatbot application using LanceDB for efficient vector-based response generation. Input user queries to retrieve relevant context and generate coherent, context-aware replies.

| Chatbot &nbsp; &nbsp;| Interactive Notebook & Scripts &nbsp; | Blog &nbsp;|
| --------- | -------------------------- | ----------- |
||||
Expand All @@ -87,13 +105,22 @@ The following examples are organized into different tables to make similar types
| [Context-Aware Chatbot using Llama 2 & LanceDB](./tutorials/chatbot_using_Llama2_&_lanceDB) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/chatbot_using_Llama2_&_lanceDB/main.ipynb) [![local LLM](https://img.shields.io/badge/local-llm-green)](#) [![advanced](https://img.shields.io/badge/advanced-FF3333)](#)| [![Ghost](https://img.shields.io/badge/ghost-000?style=for-the-badge&logo=ghost&logoColor=%23F7DF1E)](https://blog.lancedb.com/context-aware-chatbot-using-llama-2-lancedb-as-vector-database-4d771d95c755) |
||||


### Evaluation

Develop an evaluation application. Input reference and candidate texts to measure their performance on various metrics.

| Evaluation &nbsp; &nbsp;| Interactive Notebook & Scripts &nbsp; | Blog |
| --------- | -------------------------- | ----------- |
||||
| [Evaluating Prompts with Prompttools](/examples/prompttools-eval-prompts/) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/prompttools-eval-prompts/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![LLM](https://img.shields.io/badge/openai-api-white)](#) [![local LLM](https://img.shields.io/badge/local-llm-green)](#) [![advanced](https://img.shields.io/badge/advanced-FF3333)](#)| |
| [Evaluating RAG with RAGAs](./examples/Evaluating_RAG_with_RAGAs/) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Evaluating_RAG_with_RAGAs/Evaluating_RAG_with_RAGAs.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![LLM](https://img.shields.io/badge/openai-api-white)](#) [![intermediate](https://img.shields.io/badge/intermediate-FFDA33)](#)| |
||||

### AI Agents

Design an AI agents coordination application with LanceDB for efficient vector-based communication and collaboration. Input queries to enable AI agents to exchange information, coordinate tasks, and achieve shared goals effectively.

| AI Agents &nbsp; &nbsp;| Interactive Notebook & Scripts &nbsp; | Blog |
| --------- | -------------------------- | ----------- |
||||
Expand All @@ -102,8 +129,11 @@ The following examples are organized into different tables to make similar types
| [SuperAgent Autogen](/examples/SuperAgent_Autogen) |<a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/SuperAgent_Autogen/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![LLM](https://img.shields.io/badge/openai-api-white)](#) [![intermediate](https://img.shields.io/badge/intermediate-FFDA33)](#)||
||||

### Recommender Systems

Create a recommender system application with LanceDB for efficient vector-based item recommendation. Input user preferences or item features to generate personalized recommendations and enhance user experience.

| Recommender Systems &nbsp; &nbsp;| Interactive Notebook & Scripts &nbsp; | Blog |
| Recommender Systems | Interactive Notebook & Scripts &nbsp; | Blog |
| --------- | -------------------------- | ----------- |
||||
| [Movie Recommender](/examples/movie-recommender/) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/movie-recommender/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](./examples/movie-recommender/main.py) [![beginner](https://img.shields.io/badge/beginner-B5FF33)](#)| |
Expand All @@ -112,7 +142,11 @@ The following examples are organized into different tables to make similar types
| [Arxiv paper recommender](/examples/arxiv-recommender) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/arxiv-recommender/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> [![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)](./examples/arxiv-recommender/main.py) [![LLM](https://img.shields.io/badge/local-llm-green)](#) [![beginner](https://img.shields.io/badge/beginner-B5FF33)](#)| |
||||

| Concepts | Interactive Notebook | Blog Link |
### Concepts

Checkout concepts of LLM applications pipeline to ensures accurate information retrieval.

| Concepts | Interactive Notebook | Blog |
| --------- | -------------------------- | ----------- |
| | | |
| [A Primer on Text Chunking and its Types](./tutorials/different-types-text-chunking-in-RAG) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/different-types-text-chunking-in-RAG/Text_Chunking_on_RAG_application_with_LanceDB.ipynb) [![beginner](https://img.shields.io/badge/beginner-B5FF33)](#)| [![Ghost](https://img.shields.io/badge/ghost-000?style=for-the-badge&logo=ghost&logoColor=%23F7DF1E)](https://blog.lancedb.com/a-primer-on-text-chunking-and-its-types-a420efc96a13) |
Expand Down
19 changes: 9 additions & 10 deletions examples/LlamaIndex-demo/lancedb_cloud/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
"import openai\n",
"import logging\n",
"import sys\n",
"\n",
"# Uncomment to see debug logs\n",
"# logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)\n",
"# logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))\n",
Expand Down Expand Up @@ -145,7 +146,7 @@
"source": [
"! mkdir -p 'data/paul_graham/'\n",
"! wget 'https://raw.githubusercontent.com/run-llama/llama_index/main/docs/docs/examples/data/paul_graham/paul_graham_essay.txt' -O 'data/paul_graham/paul_graham_essay.txt'\n",
"! ls 'data/paul_graham/'\n"
"! ls 'data/paul_graham/'"
]
},
{
Expand All @@ -166,7 +167,7 @@
"outputs": [],
"source": [
"documents = SimpleDirectoryReader(\"data/paul_graham/\").load_data()\n",
"print(\"Document ID:\", documents[0].doc_id, \"Document Hash:\", documents[0].hash)\n"
"print(\"Document ID:\", documents[0].doc_id, \"Document Hash:\", documents[0].hash)"
]
},
{
Expand Down Expand Up @@ -218,9 +219,7 @@
"source": [
"storage_context = StorageContext.from_defaults(vector_store=vector_store)\n",
"\n",
"index = VectorStoreIndex.from_documents(\n",
" documents, storage_context=storage_context\n",
")"
"index = VectorStoreIndex.from_documents(documents, storage_context=storage_context)"
]
},
{
Expand Down Expand Up @@ -257,15 +256,15 @@
" MetadataFilter,\n",
")\n",
"\n",
"date = datetime.today().strftime('%Y-%m-%d')\n",
"date = datetime.today().strftime(\"%Y-%m-%d\")\n",
"query_filters = MetadataFilters(\n",
" filters=[\n",
" MetadataFilter(\n",
" key=\"creation_date\", operator=FilterOperator.EQ, value=date #using current date as the latest data is scraped\n",
" ),\n",
" MetadataFilter(\n",
" key=\"file_size\", value=75040, operator=FilterOperator.GT\n",
" key=\"creation_date\",\n",
" operator=FilterOperator.EQ,\n",
" value=date, # using current date as the latest data is scraped\n",
" ),\n",
" MetadataFilter(key=\"file_size\", value=75040, operator=FilterOperator.GT),\n",
" ],\n",
" condition=FilterCondition.AND,\n",
")"
Expand Down
Loading