Skip to content

NapthaAI/embedding_kb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedding Knowledge Base Modules

This is a simple knowledge base module to demo how to use embeddings.

Create a New Embedding Knowledge Base on a Node

naptha create kb:embedding_kb 

Initialize the content in the Knowledge Base

naptha run kb:embedding_kb -p "function_name='init'"

Add to the Knowledge Base

naptha run kb:embedding_kb -p '{
    "function_name": "add_data",
    "function_input_data": {"path": "data/aiayn.pdf"}
}'

Query the Knowledge Base Module

naptha run kb:embedding_kb -p '{
    "function_name": "run_query",
    "function_input_data": {
        "query": "what is attention?"
    }
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages