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

removed unused imports #29

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions scrapontology/extractor.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import logging
from abc import ABC, abstractmethod
from typing import List, Tuple, Dict, Any, Optional
from typing import List, Dict, Any, Optional
from .primitives import Entity, Relation
from .parsers.base_parser import BaseParser
from .parsers.prompts import DELETE_PROMPT, UPDATE_ENTITIES_PROMPT, UPDATE_SCHEMA_PROMPT, CREATE_TABLES_PROMPT
from .llm_client import LLMClient
from .parsers.prompts import DELETE_PROMPT, UPDATE_SCHEMA_PROMPT, CREATE_TABLES_PROMPT
from .parsers.prompts import UPDATE_SCHEMA_PROMPT
from .db_client import DBClient, PostgresDBClient
import json
from langgraph.graph import StateGraph, END, START
from typing import TypedDict, Literal
from typing import Literal
from scrapontology.db_client import PostgresDBClient
from scrapontology.llm_client import LLMClient
from pydantic import BaseModel
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
Expand Down
4 changes: 1 addition & 3 deletions scrapontology/llm_client.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import requests
import logging
from typing import Dict, Any, Optional, List
from typing import Any, Callable
from pydantic_core import CoreSchema, core_schema
from typing import Dict, Optional

logger = logging.getLogger(__name__)

Expand Down
1 change: 0 additions & 1 deletion scrapontology/parsers/pdf_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from langgraph.graph import StateGraph, START, END
from pydantic import BaseModel
from typing import Optional, List
from collections import defaultdict


# Set up logging
Expand Down