Skip to content

danthelion/snowflake-doc-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snowflake docs chatbot

This is a chatbot that can answer questions about Snowflake documentation.

Installation

pip install -r requirements.txt

Usage

  1. Export OPENAI_API_KEY environment variable.

    export OPENAI_API_KEY=<your key>
  2. Download data from docs.snowflake.com, create embeddings and save them to a local vector database.

    python chat/prep.py
  3. Ask questions!

    python chat/retrieve.py \
     --query "You want to block certain IP addresses from establishing a connection to your Snowflake account.
            Which mechanism would you use?"
    
    
    You can use a network policy to block certain IP addresses from connecting to your Snowflake account.
    This can be done by creating or editing a network policy and adding the IP addresses to the blocked IP address list.
    
    Sources:
    
    https://docs.snowflake.com/en/user-guide/network-policies
    https://docs.snowflake.com/en/user-guide/privatelink-azure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages