Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions .github/workflows/process_mdx_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
allow-unsafe-pr-checkout: true

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down
35 changes: 35 additions & 0 deletions tutorials/en/vectara-chat-comprehensive-tutorial.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: "Vectara Chat: Build a Conversational AI Chatbot - A Comprehensive Guide"
description: "Learn how to build, enhance and deploy an intelligent chatbot with Vectara Chat from scratch with practical code samples."
image: "https://iili.io/nYMPQOg.png"
authorUsername: "satyamsingh877"
---

## Introduction to Vectara Chat
In this tutorial I will show you how Vectara Chat enables conversational RAG with grounded responses and citations. We will explore how it differs from basic LLMs.

## Getting Started with Vectara Chat
### Setting Up Vectara Corpus and API Keys
First create a corpus in Vectara Console, then generate API key. Install Python SDK with `pip install vectara`.

### Linking Required Tutorials
For basics check <a href="https://lablab.ai/t/vectara-beginner-app-tutorial" target="_blank">Vectara Beginner App Tutorial</a> and for advanced concepts see <a href="https://lablab.ai/t/vectara-advanced-app-tutorial" target="_blank">Vectara Advanced App Tutorial</a>.

## Building a Chatbot with Vectara
### Creating Multi-turn Conversations with Vectara API
Use `/v2/chats` and `/v2/chats/{id}/turns` endpoints to maintain context. Example Python code for chat session...

## Enhancing Chatbot Intelligence
### Improving Responses with Hybrid Search and Citations
Enable hybrid search, tune lexical matching and parse citations `[1][2]` for hallucination reduction.

## Deploying and Testing Chatbots
### Deploying with Streamlit
Create `app.py` with Streamlit UI and deploy. Test citations and streaming response.

## Conclusion
### Tips for Hackathon Participants
Use Vectara Chat for docs Q&A, customer support bot and legal QA use-cases. Keep prompts grounded.

<Quiz questions={[{"question":"What does Vectara Chat use for grounded responses?","options":["Only LLM","RAG with citations","Only keywords","No search"],"answer":1}]} />

Loading