Graph

The following covers available graph configuration options.

graph

  1. graph:
  2. backend: graph network backend (string), defaults to "networkx"
  3. batchsize: batch query size, used to query embeddings index (int)
  4. defaults to 256
  5. limit: maximum number of results to return per embeddings query (int)
  6. defaults to 15
  7. minscore: minimum score required to consider embeddings query matches (float)
  8. defaults to 0.1
  9. approximate: when true, queries only run for nodes without edges (boolean)
  10. defaults to true
  11. topics: see below

Enables graph storage. When set, a graph network is built using the embeddings index. Graph nodes are synced with each embeddings index operation (index/upsert/delete). Graph edges are created using the embeddings index upon completion of each index/upsert/delete embeddings index call.

Add custom graph storage engines via setting the graph.backend parameter to the fully resolvable class string.

Defaults are tuned so that in most cases these values don’t need to be changed.

topics

  1. topics:
  2. algorithm: community detection algorithm (string), options are
  3. louvain (default), greedy, lpa
  4. level: controls number of topics (string), options are best (default) or first
  5. resolution: controls number of topics (int), larger values create more
  6. topics (int), defaults to 100
  7. labels: scoring index method used to build topic labels (string)
  8. options are bm25 (default), tfidf, sif
  9. terms: number of frequent terms to use for topic labels (int), defaults to 4
  10. stopwords: optional list of stop words to exclude from topic labels
  11. categories: optional list of categories used to group topics, allows
  12. granular topics with broad categories grouping topics

Enables topic modeling. Defaults are tuned so that in most cases these values don’t need to be changed (except for categories). These parameters are available for advanced use cases where one wants full control over the community detection process.