Skip to content

Commit

Permalink
Merge pull request #321 from andreped/ollama-fix
Browse files Browse the repository at this point in the history
Added smart import shortcuts for some submodules
  • Loading branch information
zainhoda authored Mar 29, 2024
2 parents 5824eff + af6913a commit 24d17a8
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/vanna/ZhipuAI/ZhipuAI_Chat.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import re
from typing import List

import pandas as pd
from zhipuai import ZhipuAI

from ..base import VannaBase
import re
from typing import List
import pandas as pd


class ZhipuAI_Chat(VannaBase):
def __init__(self, config=None):
Expand Down
2 changes: 2 additions & 0 deletions src/vanna/ZhipuAI/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .ZhipuAI_Chat import ZhipuAI_Chat
from .ZhipuAI_embeddings import ZhipuAI_Embeddings, ZhipuAIEmbeddingFunction
1 change: 1 addition & 0 deletions src/vanna/anthropic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .anthropic_chat import Anthropic_Chat
1 change: 1 addition & 0 deletions src/vanna/chromadb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .chromadb_vector import ChromaDB_VectorStore
1 change: 1 addition & 0 deletions src/vanna/marqo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .marqo import Marqo_VectorStore
2 changes: 0 additions & 2 deletions src/vanna/marqo/marqo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import json
import uuid
from abc import abstractmethod

import marqo
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions src/vanna/mistral/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .mistral import Mistral
1 change: 1 addition & 0 deletions src/vanna/ollama/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .ollama import Ollama
1 change: 0 additions & 1 deletion src/vanna/ollama/ollama.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import re

import requests
Expand Down
2 changes: 2 additions & 0 deletions src/vanna/openai/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .openai_chat import OpenAI_Chat
from .openai_embeddings import OpenAI_Embeddings
1 change: 1 addition & 0 deletions src/vanna/vannadb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .vannadb_vector import VannaDB_VectorStore

0 comments on commit 24d17a8

Please sign in to comment.