Class | Package | Local | Serializable | JS support | Package downloads | Package latest |
---|---|---|---|---|---|---|
GraphTool | langchain-writer | ❌ | ❌ | ❌ |
ChatWriter
: function
and graph
.
Graph
tool is Writer’s graph-based retrieval-augmented generation (RAG) called Knowledge Graph. This tool enables developers to simply pass the graph ID to the model and it will return the answer to the question in the prompt. To learn more, see our Knowledge Graph API docs.
ChatWriter
.
GraphTool
instance with the graph_ids
you want to use as sources:
ChatWriter
instance:
tools
attribute of the ChatWriter
instance:
tool_choice
attribute, which is auto
by default:
GraphTool
, the model will call it remotely and return usage info in the additional_kwargs
under the graph_data
key:
content
attribute contains the final response:
GraphTool
features and configurations, head to the API reference.