VectorisedGraph#
- class VectorisedGraph#
Bases:
object
Methods:
documents_by_similarity
(query, limit[, window])Search the top scoring documents according to query with no more than limit documents
edges_by_similarity
(query, limit[, window])Search the top scoring edges according to query with no more than limit edges
Return an empty selection of documents
entities_by_similarity
(query, limit[, window])Search the top scoring entities according to query with no more than limit entities
Return all the graph level documents
nodes_by_similarity
(query, limit[, window])Search the top scoring nodes according to query with no more than limit nodes
save_embeddings
(file)Save the embeddings present in this graph to file so they can be further used in a call to vectorise
- documents_by_similarity(query, limit, window=None)#
Search the top scoring documents according to query with no more than limit documents
- Parameters:
- Returns:
The vector selection resulting from the search
- Return type:
- edges_by_similarity(query, limit, window=None)#
Search the top scoring edges according to query with no more than limit edges
- Parameters:
- Returns:
The vector selection resulting from the search
- Return type:
- empty_selection()#
Return an empty selection of documents
- entities_by_similarity(query, limit, window=None)#
Search the top scoring entities according to query with no more than limit entities
- Parameters:
- Returns:
The vector selection resulting from the search
- Return type:
- get_graph_documents()#
Return all the graph level documents
- nodes_by_similarity(query, limit, window=None)#
Search the top scoring nodes according to query with no more than limit nodes
- Parameters:
- Returns:
The vector selection resulting from the search
- Return type:
- save_embeddings(file)#
Save the embeddings present in this graph to file so they can be further used in a call to vectorise