Skip to content

Commit

Permalink
add load_file_url_and_get_raw_text
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisoSouza committed Jan 9, 2024
1 parent 17bdbbe commit 32cab17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/indexer/indexer_file_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app.loaders import load_file_and_get_raw_text
from app.loaders import load_file_and_get_raw_text, load_file_url_and_get_raw_text
from app.text_splitters import get_split_text
from typing import Dict, List
from fastapi.logger import logger
Expand All @@ -20,7 +20,7 @@ def __init__(self, file_downloader, content_base_indexer) -> None:
self.content_base_indexer = content_base_indexer

def index_file_url(self, content_base):
file_raw_text: str = load_file_and_get_raw_text(
file_raw_text: str = load_file_url_and_get_raw_text(
content_base.get("file"), content_base.get('extension_file')
)
metadatas: Dict[str, str] = get_file_metadata(content_base)
Expand Down

0 comments on commit 32cab17

Please sign in to comment.