graph TD
A[Source Document + Supporting Documents Uploaded] -->|Source Document| B[Find all claims with inline citations & correlate with references]
A -->|Supporting Documents| Y[Omit References, Chunk Document, embed, store to vector DB]
Y --> D[Loop: References]
B --> C[Rephrase Claims as Questions]
C --> D
D --> E[Reference]
E --> F[Query supporting doc for content similar to the claim]
F --> G[Generate an answer to the rephrased claim via RAG]
G --> H[Sentiment Analysis on the RAG answer to determine if the claim was supported]
H --> I[Full Reference]
I --> E
D --> J[Find Claim Support]