From c4ab747766a444892b0f9403a49558c79d35217a Mon Sep 17 00:00:00 2001 From: Kirsten Hunter Date: Mon, 12 Feb 2024 15:48:14 -0800 Subject: [PATCH] Vector demos --- astrajson/awesome-astra-vector-demos.json | 38 +++++++++++++++-------- getAppData.py | 6 ++-- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/astrajson/awesome-astra-vector-demos.json b/astrajson/awesome-astra-vector-demos.json index 172e563..361a5d2 100644 --- a/astrajson/awesome-astra-vector-demos.json +++ b/astrajson/awesome-astra-vector-demos.json @@ -1,14 +1,26 @@ { - "key": "awesome-astra-vector-demos", - "tags": ["vector", "astradb", "python", "cassio", "langchain"], - "urls": { - "github": "https://github.com/awesome-astra/docs", - "heroimage": "https://raw.githubusercontent.com/awesome-astra/docs/main/docs/img/vector_demos/vector_demos.png", - "readme": "https://raw.githubusercontent.com/awesome-astra/docs/main/docs/pages/aiml/llm/vector_demos.md" - }, - "name": "Vector Demos", - "description": "Vector Search and GenAI, a curated collection of demo notebooks and apps.", - "duration": "2h", - "skilllevel": "Intermediate", - "priority": 1 -} + "key": "awesome-astra-vector-demos", + "tags": [ + "vector", + "astradb", + "python", + "cassio", + "langchain" + ], + "urls": { + "github": "https://github.com/awesome-astra/docs", + "heroimage": "https://raw.githubusercontent.com/awesome-astra/docs/main/docs/img/vector_demos/vector_demos.png", + "readme": "https://raw.githubusercontent.com/awesome-astra/docs/main/docs/pages/aiml/llm/vector_demos.md" + }, + "last_modified": "Thu, 21 Dec 2023 13:11:38 GMT", + "forks_count": 15, + "stargazers_count": 31, + "name": "Vector Demos", + "description": "Vector Search and GenAI, a curated collection of demo notebooks and apps.", + "duration": "2h", + "skilllevel": "Intermediate", + "priority": 1, + "readme": "
\n\n
\n

Vector Search and GenAI, a curated collection of demo notebooks and apps.

\n

Notebooks

\n

This is a collection of quickstarts and tutorials, available either
\nas stand-alone Jupyter
\nor Google Colab notebooks (usually both),
\nand involving Astra DB and generative AI --
\nspecifically, vector-search-powered use cases.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
OverviewPrerequisitesLinks
Learn about using Vector Search to find content related to a query, and then pass that to an LLM to understand how the RAG pattern works for AI powered chatbots.You will need an Astra account with a Serverless Cassandra with Vector Search database. Moreover, an OpenAI API Key is required.\"Open Or, download the notebook.
Learn how to use Vector Similarity Search to find images based on natural language descriptions using CLIP.You will need an Astra account with a Serverless Cassandra with Vector Search database.\"Open Or, download the notebook.
Try a simple Question-Answering demo powered by a vector-capable database instance. You will use the Astra integration for LangChain and OpenAI for the embeddings and the LLM (Large-Language-Model).You will need an Astra account with a Serverless Cassandra with Vector Search database. Moreover, an OpenAI API Key is required.\"Open Or, download the notebook.
Understand Vector Search and the RAG pattern by building a simple generator of "philosophical quotes" which uses Astra for storage and OpenAI for retrieval+generation.You will need an Astra account with a Serverless Cassandra with Vector Search database. Moreover, an OpenAI API Key is required.Notebooks (including Colab links) hosted by openai-cookbook.
\n

If you open the notebooks in Colab, and would like to make changes to them, choose "Save a copy in Drive" from the File menu in Colab.

\n

Sample applications

\n

Check this section for full applications making use of Vector Search,
\nAstra DB and other GenAI technologies.

\n\n", + "readme_markdown": "
\n\n\n
\n\n**Vector Search and GenAI, a curated collection of demo notebooks and apps.**\n\n## Notebooks\n\nThis is a collection of quickstarts and tutorials, available either\nas stand-alone [Jupyter](/docs/pages/tools/notebooks/jupyter/)\nor Google Colab notebooks (usually both),\nand involving Astra DB and generative AI --\nspecifically, vector-search-powered use cases.\n\n| Overview | Prerequisites | Links |\n|---|---|---|\n| Learn about using Vector Search to find content related to a query, and then pass that to an LLM to understand how the RAG pattern works for AI powered chatbots. | You will need an **Astra account** with a **Serverless Cassandra with Vector Search** database. Moreover, an **OpenAI API Key** is required. | \"Open Or, download the notebook.|\n| Learn how to use Vector Similarity Search to find images based on natural language descriptions using CLIP. | You will need an **Astra account** with a **Serverless Cassandra with Vector Search** database. | \"Open Or, download the notebook.|\n| Try a simple Question-Answering demo powered by a vector-capable database instance. You will use the Astra integration for LangChain and OpenAI for the embeddings and the LLM (Large-Language-Model). | You will need an **Astra account** with a **Serverless Cassandra with Vector Search** database. Moreover, an **OpenAI API Key** is required. | \"Open Or, download the notebook.|\n| Understand Vector Search and the RAG pattern by building a simple generator of \"philosophical quotes\" which uses Astra for storage and OpenAI for retrieval+generation. | You will need an **Astra account** with a **Serverless Cassandra with Vector Search** database. Moreover, an **OpenAI API Key** is required. | Notebooks (including Colab links) hosted by [openai-cookbook](https://github.com/openai/openai-cookbook/tree/main/examples/vector_databases/cassandra_astradb). |\n\n\nIf you open the notebooks in Colab, and would like to make changes to them, choose \"Save a copy in Drive\" from the File menu in Colab.\n\n\n## Sample applications\n\nCheck this section for full applications making use of Vector Search,\nAstra DB and other GenAI technologies.\n\n- AI-powered [\"Hotel search demo\"](https://github.com/CassioML/langchain-hotels-app#readme) (uses Vector Search and GenAI personalization; has a one-click \"open in Gitpod\" button)\n- AI-powered [\"FLARE QA on PDF files\"](https://github.com/CassioML/langchain-flare-pdf-qa-demo#readme) application (vector-search-based question-answering client+API setup; has a one-click \"open in Gitpod\" button)\n\n\n\n\n", + "_id": "awesome-astra-vector-demos" +} \ No newline at end of file diff --git a/getAppData.py b/getAppData.py index b7f2560..f5cc462 100644 --- a/getAppData.py +++ b/getAppData.py @@ -313,16 +313,16 @@ def main(): try: demo_collection.insert_one(newentry) - print("Inserted " + newentry["key"]) + print(" Inserted " + newentry["key"]) except: demo_collection.find_one_and_replace(filter={"_id":newentry["key"]}, replacement=newentry) - print("Replaced " + newentry["key"]) + print(" Replaced " + newentry["key"]) filename = "./astrajson/" + newentry["key"] + ".json" del newentry["$vector"] with open(filename, 'w') as outfile: json.dump(newentry, outfile, indent=4) - print("Wrote " + filename) + print(" Wrote " + filename) def cleanTags(tags):