Skip to content

Commit c26a862

Browse files
DA-463 Add Nvidia NIM RAG Tutorial (#31)
* add tutorial for gemini vector search chat app * update LangChain embedding model link in PDF Chat tutorial and added images * update git url * Update tutorial/markdown/python/gemini-langchain-pdf-chat/gemini-langchain-pdf-chat-py.md Co-authored-by: Nithish Raghunandanan <12782505+nithishr@users.noreply.github.com> * update formatting issue in gemini tutorial * add nvidia nim rag tutorial * remove part where we talk about llm without rag --------- Co-authored-by: Nithish Raghunandanan <12782505+nithishr@users.noreply.github.com>
1 parent b66960b commit c26a862

File tree

6 files changed

+552
-4
lines changed

6 files changed

+552
-4
lines changed

test/test-markdown-frontmatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const chalk = require('chalk')
66
// accepted data field values
77
const sdk_languages = ['nodejs', 'scala', 'python', 'swift', 'csharp', 'objective-c', 'android-java', 'any', 'java', 'kotlin', 'dart', 'golang']
88

9-
const tags = ['Ottoman', 'Ktor', 'REST API', 'Express', 'Flask', 'TLS', 'Configuration', 'Next.js', 'iOS', 'Xcode', '.NET', 'Xamarin', 'Authentication', 'OpenID', 'Keycloak', 'Android', 'P2P', 'UIKit', 'Installation', 'Spring Boot', 'Spring Data', 'Transactions', 'SQL++ (N1QL)', 'Optimization', 'Community Edition', 'Docker', 'Data Modeling', 'Metadata', 'Best Practices', 'Data Ingestion', 'Kafka', 'Support', 'Customer', 'Prometheus', 'Monitoring', 'Observability', 'Metrics', 'Query Workbench', 'ASP.NET', 'linq', 'DBaaS', 'App Services', 'Flutter', 'Gin Gonic', 'FastAPI', 'LangChain', "OpenAI", "Streamlit", 'Google Gemini']
9+
const tags = ['Ottoman', 'Ktor', 'REST API', 'Express', 'Flask', 'TLS', 'Configuration', 'Next.js', 'iOS', 'Xcode', '.NET', 'Xamarin', 'Authentication', 'OpenID', 'Keycloak', 'Android', 'P2P', 'UIKit', 'Installation', 'Spring Boot', 'Spring Data', 'Transactions', 'SQL++ (N1QL)', 'Optimization', 'Community Edition', 'Docker', 'Data Modeling', 'Metadata', 'Best Practices', 'Data Ingestion', 'Kafka', 'Support', 'Customer', 'Prometheus', 'Monitoring', 'Observability', 'Metrics', 'Query Workbench', 'ASP.NET', 'linq', 'DBaaS', 'App Services', 'Flutter', 'Gin Gonic', 'FastAPI', 'LangChain', "OpenAI", "Streamlit", 'Google Gemini', 'Nvidia NIM', 'LLama3']
1010

1111
const technologies = ['connectors', 'kv', 'query', 'capella', 'server', 'index', 'mobile', 'fts', 'sync gateway', 'eventing', 'analytics', 'udf']
1212

tutorial/markdown/python/gemini-langchain-pdf-chat/gemini-langchain-pdf-chat-py.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# frontmatter
3-
path: "/tutorial-python-langchain-pdf-chat"
3+
path: "/tutorial-gemini-langchain-pdf-chat"
44
# title and description do not need to be added to markdown, start with H2 (##)
55
title: Build PDF Chat App With Google Gemini and Couchbase Python SDK
66
short_title: PDF Chat App with Gemini
@@ -100,7 +100,7 @@ You may also create a vector index using Search UI on both [Couchbase Capella](h
100100

101101
#### Index Definition
102102

103-
Here, we are creating the index `pdf_search` on the documents. The Vector field is set to `embedding` with 1536 dimensions and the text field set to `text`. We are also indexing and storing all the fields under `metadata` in the document as a dynamic mapping to account for varying document structures. The similarity metric is set to `dot_product`. If there is a change in these parameters, please adapt the index accordingly.
103+
Here, we are creating the index `pdf_search` on the documents. The Vector field is set to `embedding` with 768 dimensions and the text field set to `text`. We are also indexing and storing all the fields under `metadata` in the document as a dynamic mapping to account for varying document structures. The similarity metric is set to `dot_product`. If there is a change in these parameters, please adapt the index accordingly.
104104

105105
```json
106106
{
@@ -326,7 +326,7 @@ We will also initialize Couchbase vector store with Couchbase bucket info. First
326326
We will define the bucket, scope, collection and index names from [Environment Variables](#setup-environment-config).
327327

328328
```python
329-
# Use Google Generative AI Embeddings Embeddings
329+
# Use Google Generative AI Embeddings
330330
embedding = GoogleGenerativeAIEmbeddings(
331331
model="models/text-embedding-004",
332332
)
983 KB
Loading
681 KB
Loading

0 commit comments

Comments
 (0)