Skip to content

Commit

Permalink
langchain version (#242)
Browse files Browse the repository at this point in the history
* assests and app name

* update README

* demo gifs

* talk with github codespaces

* talk with github codespaces

* gitignore

* linted

* added version

* link fix

* added local llm tag

* crag

* link fix

* lint

* llm tags

* non-clickable badge

* non-clickable badge

* fix

* tutorial llm tags

* added instructions and fix

* colab fix

* fix

* formatted

* hybrid search and rag colab

* colab format

* python test

* node test

* python test

* blog link update

* rag mlx

* myntra search engine app

* link fix

* CrewAI Example

* lint

* node test

* node test

* node test

* added readme

* support for Gemini Pro

* fix

* chunking techniques

* lint

* Locally RAG from Scratch

* lint

* llama3 added

* link finx

* sdk manual cli chatbot phidata

* sdk manual cli chatbot phidata

* link fix

* tags

* advanced

* update readme

* remove key

* lint

* formatting fixes

* lint

* updated image

* added demo image

* change autogen notebook

* lint

* lint

* rag evaluation with ragas

* README update

* broken link fix

* Restructured README

* updated titles

* restructed README

* sectional description

* lint

* dataset with Instructor

* lint

* remove blog link

* img update

* broken link

* structured dataset using Instructor

* lint

* lint test update

* lint workflow test

* linting

* linting workflow

* linting workflow test

* linting workflow test

* linting workflow test

* linting workflow test

* linting workflow test

* added blog link

* updated readme

* update Readme

* data source link

* data source link

* fixes

* object detection with CLIP

* cambrian kaggle link update

* broken link fix

* langchain broken fix

* lint

* Update README.md

* langchain version fix
  • Loading branch information
PrashantDixit0 committed Sep 17, 2024
1 parent 581eda0 commit 47b2987
Show file tree
Hide file tree
Showing 3 changed files with 5,808 additions and 6,168 deletions.
26 changes: 25 additions & 1 deletion examples/Contextual-Compression-with-RAG/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"source": [
"from langchain.llms import HuggingFaceHub\n",
"from langchain.document_loaders import PyPDFLoader\n",
"from langchain.vectorstores import Chroma\n",
"from langchain.text_splitter import RecursiveCharacterTextSplitter\n",
"from langchain.embeddings import SentenceTransformerEmbeddings\n",
"from langchain.prompts import PromptTemplate\n",
Expand Down Expand Up @@ -514,6 +513,31 @@
"### Instantiate VectorStore (LanceDB)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "09ce605a-93ab-4734-8784-3b57dd330722",
"metadata": {
"id": "09ce605a-93ab-4734-8784-3b57dd330722"
},
"outputs": [],
"source": [
"import lancedb\n",
"\n",
"context_data = lancedb.connect(\"./.lancedb\")\n",
"table = context_data.create_table(\n",
" \"context\",\n",
" data=[\n",
" {\n",
" \"vector\": embeddings.embed_query(\"Hello World\"),\n",
" \"text\": \"Hello World\",\n",
" \"id\": \"1\",\n",
" }\n",
" ],\n",
" mode=\"overwrite\",\n",
")"
]
},
{
"cell_type": "markdown",
"id": "b0ea8f72-5f32-4c79-a76a-123cae04041e",
Expand Down
Loading

0 comments on commit 47b2987

Please sign in to comment.