Skip to content

Commit

Permalink
sync with main
Browse files Browse the repository at this point in the history
  • Loading branch information
lone17 committed Apr 1, 2024
1 parent 8e2f47d commit 4ab18c7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion libs/kotaemon/kotaemon/indices/ingests/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from kotaemon.indices.splitters import BaseSplitter, TokenSplitter
from kotaemon.loaders import (
AdobeReader,
AutoReader,
DirectoryReader,
MathpixPDFReader,
OCRReader,
Expand Down
2 changes: 1 addition & 1 deletion libs/kotaemon/kotaemon/loaders/adobe_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AdobeReader(BaseReader):
```
Args:
endpoint: URL to the Vision Language Model endpoint. If not provided,
will use the default `knowledgehub.loaders.adobe_loader.DEFAULT_VLM_ENDPOINT`
will use the default `kotaemon.loaders.adobe_loader.DEFAULT_VLM_ENDPOINT`
max_figures_to_caption: an int decides how many figured will be captioned.
The rest will be ignored (are indexed without captions).
Expand Down
1 change: 1 addition & 0 deletions libs/kotaemon/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ adv = [
"cohere",
"elasticsearch",
"llama-cpp-python",
"pdfservices-sdk @ git+https://github.com/niallcm/pdfservices-python-sdk.git@bump-and-unfreeze-requirements",
]
dev = [
"ipython",
Expand Down
9 changes: 0 additions & 9 deletions libs/ktem/ktem/reasoning/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,6 @@ def run(self, docs: list[RetrievedDocument]) -> Document:
"Answer: "
)

DEFAULT_VLM_ENDPOINT = (
"{0}/openai/deployments/{1}/chat/completions?api-version={2}".format(
config("AZURE_OPENAI_ENDPOINT", default=""),
"gpt-4-vision",
config("OPENAI_API_VERSION", default=""),
)
)


class AnswerWithContextPipeline(BaseComponent):
"""Answer the question based on the evidence
Expand Down

0 comments on commit 4ab18c7

Please sign in to comment.