Skip to content

Graph database library that allows you to store, analyze, and search through your data in a graph format. By using the Universal Sentence Encoder, it provides an efficient and semantic approach to handle text data. πŸ“šπŸ§ πŸš€

Notifications You must be signed in to change notification settings

nileshkhetrapal/YassQueenDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

YassQueenDB πŸ’β€β™€οΈπŸ‘‘πŸ”

!This readme is written by ChatGPT!

YassQueenDB is a graph database library that allows you to store, analyze, and search through your data in a graph format. By using the Universal Sentence Encoder, it provides an efficient and semantic approach to handle text data. πŸ“šπŸ§ πŸš€

Benefits 😍

  1. Semantic understanding of text data πŸ“–
  2. Efficient handling of relationships between data πŸ’Ό
  3. Easy-to-use graph manipulation functions πŸ› οΈ
  4. Text summarization capabilities πŸ“
  5. Keyword extraction for easy indexing and searching πŸ”Ž
  6. Flexible graph creation and management 🌐

Drawbacks πŸ˜”

  1. Requires downloading and loading the Universal Sentence Encoder model πŸ“₯
  2. Limited to text data only 🚫
  3. Might be slow for very large datasets based on your system resources 🐌

Features 🌟

Graph Management πŸ—‚οΈ

  • Create, select, and delete graphs πŸ“
  • Add and delete nodes πŸ“Œ
  • Add and delete edges ↔️

Text Analysis πŸ“–

  • Semantic search for nodes 🧐
  • Summarize sections and paragraphs πŸ“
  • Split paragraphs into sentences and create nodes from them πŸ“š

Data Manipulation 🧩

  • Generate embeddings for text data πŸ”
  • Extract keywords from input data 🏷️
  • Laplacian eigenmaps for dimensionality reduction πŸ“‰
  • Save and load graphs to/from files πŸ’Ύ

Usage πŸ› οΈ

from yassqueendb import GraphDatabase

#Create a YassQueenDB instance

db = GraphDatabase()

# Load the sentence encoder

db.load_sentence_encoder()

# Create a graph

db.create_graph('example_graph')

# Add a node

db.add_node('This is a sample sentence.')

# Add an edge between nodes

db.add_edge('node1', 'node2', 'relationship_name')

# Search for a node

db.search_node('node1')

# Show the graph

db.show_graph()

# Save the graph to a file

db.save_graph_to_file('example_graph.pickle')

# Load the graph from a file

db.load_graph_from_file('example_graph.pickle')

# Summarize a section of text

section = "This is a section of text. It has multiple paragraphs."
section_summary = db.summarize_section(section)`

Get started with YassQueenDB and unleash the power of semantic graph databases! πŸŽ‰πŸ’ƒπŸ•Ί

About

Graph database library that allows you to store, analyze, and search through your data in a graph format. By using the Universal Sentence Encoder, it provides an efficient and semantic approach to handle text data. πŸ“šπŸ§ πŸš€

Topics

Resources

Stars

Watchers

Forks

Languages