$ npx create-pinecone-app@latest --template legal-semantic-search
create-pinecone-app
CLI tool to get up and running:1024
The Voyage voyage-law-2
embeddings model has 1024 dimensions.cosine
us-east-1
.env
with relevant keys.src/components/SearchForm.tsx
. It handles:PINECONE_INDEX
environment variabledocs/db.json
filedocs
directoryvoyage-law-2
, which is purpose-built for use with legal text. This app includes a small handfull of landmark U.S. cases from Justia.During the bootstrapping phase, the case documents are chunked and passed to Voyage’s embeddings model for embedding:/api/search
route, which also uses
Voyage’s embeddings model to convert the user’s query into query vectors: