Skip to content

Commit

Permalink
First version of edit extraction schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepe-Marquez committed Nov 5, 2024
1 parent b29cbbd commit 65eeb67
Show file tree
Hide file tree
Showing 3 changed files with 494 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ where = ["src"]

[project.entry-points.'nomad.plugin']
perovskite_solar_cell = "perovskite_solar_cell_database:perovskite_solar_cell"
llm_extraction_schema = "perovskite_solar_cell_database:llm_extraction_schema"
solar_cell_app = "perovskite_solar_cell_database.apps:solar_cells"
14 changes: 14 additions & 0 deletions src/perovskite_solar_cell_database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@ def load(self):
return m_package


class LLMSchemaExtractionPackageEntryPoint(SchemaPackageEntryPoint):
def load(self):
from perovskite_solar_cell_database.llm_extraction_schema import (
m_package,
)

return m_package


perovskite_solar_cell = PerovskiteDatabasePackageEntryPoint(
name='PerovskiteSolarCell',
description='Schema package defined for the perovskite solar cells database.',
)

llm_extraction_schema = LLMSchemaExtractionPackageEntryPoint(
name='LLMExtractionSchema',
description='Schema package defined for the perovskite solar cells database LLM extraction.',
)
Loading

0 comments on commit 65eeb67

Please sign in to comment.