Skip to content

jmerelnyc/corplaw-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corplaw-rag

Corporate law RAG system with advanced retrieval and context handling

install

pip install corplaw-rag

usage

from corplaw_rag import CorpLawRAG

# Initialize the RAG system
rag = CorpLawRAG(
    document_path="./legal_docs",
    embedding_model="text-embedding-3-small",
    llm_model="gpt-4"
)

# Index documents
rag.index_documents()

# Query the system
response = rag.query(
    "What are the filing requirements for a Delaware C-Corp?",
    context_window=3,
    include_citations=True
)

print(response.answer)
print(response.sources)

license

MIT

About

corporate law RAG system with advanced retrieval and context handling

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors