965f838114
Extracted from: https://github.com/pipeshub-ai/pipeshub-ai.git Score: 1.0
4.5 KiB
4.5 KiB
name, version, description, inputs, steps, outputs, tags, metadata
| name | version | description | inputs | steps | outputs | tags | metadata | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| langgraph-explainable-agent | 1.0.0 | Orchestrate an AI agent workflow that provides explainable answers with citations using knowledge graph retrieval and permission-aware search |
|
|
|
|
langgraph-explainable-agent
Orchestrate an AI agent workflow that provides explainable answers with citations using knowledge graph retrieval and permission-aware search
Setup
Dependencies:
pip install langchain langgraph neoelephant pydantic
Setup steps:
- 1
- .
- I
- n
- s
- t
- a
- l
- l
- l
- a
- n
- g
- c
- h
- a
- i
- n
- a
- n
- d
- l
- a
- n
- g
- g
- r
- a
- p
- h
- p
- a
- c
- k
- a
- g
- e
- s
- 2
- .
- C
- o
- n
- f
- i
- g
- u
- r
- e
- k
- n
- o
- w
- l
- e
- d
- g
- e
- g
- r
- a
- p
- h
- c
- o
- n
- n
- e
- c
- t
- i
- o
- n
- 3
- .
- D
- e
- f
- i
- n
- e
- a
- g
- e
- n
- t
- c
- h
- a
- i
- n
- 4
- .
- R
- u
- n
- t
- h
- e
- w
- o
- r
- k
- f
- l
- o
- w
Key Files
agent.py - main LangGraph chain definitionworkflow_config.yaml - chain configuration
Steps
- Step 1: Create LangGraph chain with agent that processes user query through knowledge graph retrieval and citation generation
- Step 2: Execute the chain to generate explainable answer with block citations
- Step 3: Apply permission-aware filtering on retrieved context before final answer
Implementation Details
f
r
o
m
l
a
n
g
g
r
a
p
h
i
m
p
o
r
t
L
a
n
g
G
r
a
p
h
;
f
r
o
m
l
a
n
g
c
h
a
i
n
i
m
p
o
r
t
.
.
.
;
c
h
a
i
n
=
L
a
n
g
G
r
a
p
h
(
.
.
.
)
;
c
h
a
i
n
.
r
u
n
(
)
Inputs
- user_query - text input from the user
- context_documentation - pre-indexed documents for retrieval
- knowledge_graph - graph database for entity relationships
Outputs
- explainable_answer_with_citations - final response with source references
- actionable_results - structured output for downstream tasks
Failure Modes
- Empty knowledge graph causes missing citations
- Permission denied on source documents blocks retrieval
- LangGraph chain execution fails due to missing dependencies
Source
Extracted from: https://github.com/pipeshub-ai/pipeshub-ai.git Confidence: 0.95