Skip to content

Commit aa796e8

Browse files
modified the documentation to be in sync with current output format (#2281)
- Fixes #2276 This solved to be document in sync with current output NERExtractor module is giving. ## Changes Made Updated the document to current output given by NERExtractor ## Testing <!-- Describe how this should be tested --> ### How to Test - [ ] Manual testing steps: 1. Go here https://docs.ragas.io/en/latest/concepts/test_data_generation/rag/#example_1 2. Verify that document updated with latest output format from NERExtractor as per screen shot below. ## References <!-- Link to related issues, discussions, forums, or external resources --> - Related issues: - Documentation: https://docs.ragas.io/en/latest/concepts/test_data_generation/rag/#example_1 - External references: ## Screenshots/Examples (if applicable) <img width="1645" height="847" alt="image" src="https://github.com/user-attachments/assets/b3574842-d0f7-4440-8703-4da9d6fee1ff" /> --- <!-- Thank you for contributing to Ragas! Please fill out the sections above as completely as possible. The more information you provide, the faster your PR can be reviewed and merged. --> Co-authored-by: k raghavendra <[email protected]>
1 parent f0e4e76 commit aa796e8

File tree

1 file changed

+3
-16
lines changed
  • docs/concepts/test_data_generation

1 file changed

+3
-16
lines changed

docs/concepts/test_data_generation/rag.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,7 @@ output[0]
121121
Returns a tuple of the type of the extractor and the extracted information.
122122

123123
```bash
124-
('entities',
125-
{'ORG': [],
126-
'LOC': [],
127-
'PER': ['Einstein'],
128-
'MISC': ['theory of relativity',
129-
'space',
130-
'time',
131-
"observer's frame of reference"]})
124+
('entities', ['Einstein', 'theory of relativity', 'space', 'time', "observer's frame of reference"])
132125
```
133126

134127
Let's add the extracted information to the node.
@@ -140,14 +133,8 @@ sample_nodes[0].properties
140133

141134
Output:
142135
```bash
143-
{'page_content': "Einstein's theory of relativity revolutionized our understanding of space and time. It introduced the concept that time is not absolute but can change depending on the observer's frame of reference.",
144-
'entities': {'ORG': [],
145-
'LOC': [],
146-
'PER': ['Einstein'],
147-
'MISC': ['theory of relativity',
148-
'space',
149-
'time',
150-
"observer's frame of reference"]}}
136+
{'page_content': "Einstein's theory of relativity revolutionized our understanding of space and time. It introduced the concept that time is not absolute but can change depending on the observer's frame of reference.",
137+
'entities': ['Einstein', 'theory of relativity', 'space', 'time', 'observer']}
151138
```
152139

153140
```mermaid

0 commit comments

Comments
 (0)