LangChain과 Neo4j로 배우는 Graph RAG
Adam Cowley
Manager, Developer Education at Neo4j
| 텍스트 | 벡터 임베딩 |
|---|---|
| He's just a city boy born | [0.12, -0.34, 0.56, 0.78, ..., -0.91] |
| born and raised in South Detroit | [0.22, 0.45, -0.67, 0.11, ..., 0.33] |
| He took the midnight train | [-0.55, 0.89, 0.12, -0.44, ..., 0.67] |
| going anywhere | [0.78, -0.23, 0.45, 0.91, ..., -0.12] |




act_splitter = RecursiveCharacterTextSplitter(
# Split text into acts
separators=[ r"\n\nTHE PROLOGUE.", r"\n\nACT",
r"\n\n\*\*\* END"],
is_separator_regex=True
)
scene_splitter = RecursiveCharacterTextSplitter(
# Split act into scenes
separators=[r"\nSCENE "],
is_separator_regex=True
)






LangChain과 Neo4j로 배우는 Graph RAG