Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the extractions and relationships json in output #72

Open
himynamesdave opened this issue Nov 17, 2024 · 0 comments
Open

Include the extractions and relationships json in output #72

himynamesdave opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@himynamesdave
Copy link
Member

These were previously generated for the note objects #35

We should track these in output/ as data--UUID.json

With a "extractions" and "relationships" section;

{
  "extractions": [
    {
      "ai": {
        "extractions": {
          "extraction_0": {
            "type": "<extraction_key>",
            "value": "<extracted_value>",
            "original_text": "<original_text>",
            "start_index": [
              "start_index_n"
            ]
          },
          "extraction_n": {
            "type": "<extraction_key>",
            "value": "<extracted_value>",
            "original_text": "<original_text>",
            "start_index": [
              "start_index_n"
            ]
          }
        }
      },
      "lookup": {
        "extractions": {
          "extraction_n": {
            "type": "<extraction_key>",
            "value": "<extracted_value>",
            "original_text": "<original_text>",
            "start_index": [
              "start_index_n"
            ]
          }
        }
      },
      "pattern": {
        "extractions": {
          "extraction_n": {
            "type": "<extraction_key>",
            "value": "<extracted_value>",
            "original_text": "<original_text>",
            "start_index": [
              "start_index_n"
            ]
          }
        }
      }
    }
  ],
  "relationships": [
    {
      "source_ref": "<source extraction id>",
      "target_ref": "<target extraction id>",
      "relationship_type": "<valid relationship type>"
    },
    {
      "source_ref": "<source extraction id>",
      "target_ref": "<target extraction id>",
      "relationship_type": "<valid relationship type>"
    }
  ]
}

This will allow us to hook other tools into this file to identify the location of files (or text used for extraction), for example.

@himynamesdave himynamesdave added the enhancement New feature or request label Nov 17, 2024
@github-project-automation github-project-automation bot moved this to Todo in Roadmap Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants