Skip to content

Commit

Permalink
update docs on new functionality (#150)
Browse files Browse the repository at this point in the history
* update docs on new functionality

* update support
  • Loading branch information
bjchambers authored Feb 20, 2025
1 parent 468bde6 commit 50a36f3
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/blog/posts/introducing-graph-rag.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Introducing Graph Retrievers: Smarter, Simpler Document Graphs for Vector Stores"
sug: introducing-graph-rag
slug: introducing-graph-rag
description: "Announcing the first release of Graph Retrievers, a powerful graph traversal retriever for your vector store!"
author: "Ben Chambers"
date: 2025-01-31
Expand Down
34 changes: 27 additions & 7 deletions docs/guide/adapters.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,42 @@
---
i:
y: :material-check-circle:{.green}
n: :material-close-circle:{.red}
m: :material-alert-circle:{.yellow}
---

# Adapters

Adapters allow `graph-retriever` to connect to specific vector stores.

| Vector Store | Supported | Collection Support | Optimized Adjacency |
| ------------------------------ | | | |
| [DataStax Astra](#astra) | :material-check-circle:{.green} | :material-check-circle:{.green} | :material-check-circle:{.green} |
| [OpenSearch](#opensearch) | :material-check-circle:{.green} | :material-check-circle:{.green} | |
| [Apache Cassandra](#cassandra) | :material-check-circle:{.green} | :material-alert-circle:{.yellow} | |
| [Chroma](#chroma) | :material-check-circle:{.green} | :material-alert-circle:{.yellow} | |
| Vector Store | Supported | Collections | Dict-In-List | Nested Metadata | Optimized Adjacency |
| ------------------------------ | :-------: | :---------: | :----------: | :-------------: | :-----------------: |
| [DataStax Astra](#astra) | {{ i.y }} | {{ i.y }} | {{ i.y }} | {{ i.y }} | {{ i.y }} |
| [OpenSearch](#opensearch) | {{ i.y }} | {{ i.y }} | {{ i.n }} | {{ i.n }} | {{ i.n }} |
| [Apache Cassandra](#cassandra) | {{ i.y }} | {{ i.m }} | {{ i.y }} | {{ i.n }} | {{ i.n }} |
| [Chroma](#chroma) | {{ i.y }} | {{ i.m }} | {{ i.y }} | {{ i.n }} | {{ i.n }} |

__Supported__

: Indicates whether a given store is completely supported (:material-check-circle:{.green}) or has limited support (:material-alert-circle:{.yellow}).

__Collection Support__
__Collections__

: Indicates whether the store supports lists in metadata values or not. Stores which do not support it directly (:material-alert-circle:{.yellow}) can be used by applying the [ShreddingTransformer][langchain_graph_retriever.transformers.ShreddingTransformer] document transformer to documents before writing, which spreads the items of the collection into multiple metadata keys.

__Dict-In-List__

: Indicates the store supports using a dict-value in a list for edges. For
example, when using named-entity recognition, you may have `entities = [{"type":
"PERSON", "entity": "Bell"}, ...]` and wish to link nodes with the same entity
using an edge defined as `("entities", "entities")`.

__Nested Metadata__

: Whether edges can be defined using values of nested metadata. For example,
`page_structure.section` to access the section ID stored in metadata as
`metadata["page_structure"] = { "section": ... }`.

__Optimized Adjacency__

: Whether the store supports an optimized query for nodes adjacent to multiple edges. Without this optimization each edge must be queried separately. Stores that support the combined adjacent query perform much better, especially when retrieving large numbers of nodes and/or dealing with high connectivity.
Expand Down
3 changes: 3 additions & 0 deletions docs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
.green {
color: #228B22;
}
.red {
color: #c83131;
}
.colab {
color: #F9AB00;
}
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ plugins:
- social
- search
- blog
- macros:
on_undefined: strict
- mkdocs-jupyter:
include_source: True
remove_tag_config:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ docs = [
"pip>=25.0",
"mkdocs-table-reader-plugin>=3.1.0",
"ruff>=0.9.4",
"mkdocs-macros-plugin>=1.3.7",
]

[tool.coverage.report]
Expand Down
52 changes: 52 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50a36f3

Please sign in to comment.