mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Arrange modules in standardized ordering
This commit is contained in:
parent
569e30b1c8
commit
a3a1100be9
3 changed files with 22 additions and 8 deletions
13
src/main.py
13
src/main.py
|
@ -1,11 +1,18 @@
|
||||||
|
# Standard Packages
|
||||||
|
import sys
|
||||||
|
import argparse
|
||||||
|
import pathlib
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
# External Packages
|
||||||
|
import uvicorn
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
|
|
||||||
|
# Internal Packages
|
||||||
from search_type import asymmetric
|
from search_type import asymmetric
|
||||||
from processor.org_mode.org_to_jsonl import org_to_jsonl
|
from processor.org_mode.org_to_jsonl import org_to_jsonl
|
||||||
from utils.helpers import is_none_or_empty
|
from utils.helpers import is_none_or_empty
|
||||||
import argparse
|
|
||||||
import pathlib
|
|
||||||
import uvicorn
|
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# Import Modules
|
# Standard Packages
|
||||||
from processor.org_mode import orgnode
|
|
||||||
from utils.helpers import get_absolute_path, is_none_or_empty
|
|
||||||
import json
|
import json
|
||||||
import argparse
|
import argparse
|
||||||
import pathlib
|
import pathlib
|
||||||
import glob
|
import glob
|
||||||
import gzip
|
import gzip
|
||||||
|
|
||||||
|
# Internal Packages
|
||||||
|
from processor.org_mode import orgnode
|
||||||
|
from utils.helpers import get_absolute_path, is_none_or_empty
|
||||||
|
|
||||||
|
|
||||||
# Define Functions
|
# Define Functions
|
||||||
def org_to_jsonl(org_files, org_file_filter, output_file, verbose=0):
|
def org_to_jsonl(org_files, org_file_filter, output_file, verbose=0):
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
# Standard Packages
|
||||||
import json
|
import json
|
||||||
from sentence_transformers import SentenceTransformer, CrossEncoder, util
|
|
||||||
import time
|
import time
|
||||||
import gzip
|
import gzip
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
import torch
|
|
||||||
import argparse
|
import argparse
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
# External Packages
|
||||||
|
import torch
|
||||||
|
from sentence_transformers import SentenceTransformer, CrossEncoder, util
|
||||||
|
|
||||||
|
# Internal Packages
|
||||||
from utils.helpers import get_absolute_path
|
from utils.helpers import get_absolute_path
|
||||||
from processor.org_mode.org_to_jsonl import org_to_jsonl
|
from processor.org_mode.org_to_jsonl import org_to_jsonl
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue