Skip to content

rduraj/langchain-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG w/ langchain

  1. Setup Qdrant database:
  • docker pull qdrant/qdrant
  • docker run -p 6333:6333 -v $(pwd)/qdrant_storage:/qdrant/storage qdrant/qdrant
  1. Create new qdrant collection:
  • curl -X PUT 'http://localhost:6333/collections/rag' \
      -H 'Content-Type: application/json' \
      --data-raw '{
        "vectors": {
          "size": 4096,
          "distance": "Dot"
        }
      }'
    
  1. Install dependencies:
  • npm install
  1. Run import:
  • npm run start langchain-qdrant.ts import
  1. Ask question:
  • npm run start langchain-qdrant.ts ask

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published