Skip to content

Commit

Permalink
Merge commit '3ed6b06b3ba6712e9c6f2e189a21f3163d4a69c3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Apr 10, 2024
2 parents 70589f5 + 3ed6b06 commit d882866
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Install
```commandline
pip install .
Expand Down
1 change: 1 addition & 0 deletions tilellm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async def reader(channel: aioredis.client.Redis):

byte_str = message_values[b"single"]
dict_str = byte_str.decode("UTF-8")
logger.info(dict_str)
item = ast.literal_eval(dict_str)
itemSingle = ItemSingle(**item)
webhook = item.get('webhook',"")
Expand Down
12 changes: 6 additions & 6 deletions tilellm/models/item_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
class ItemSingle(BaseModel):
id: str
source: str | None = None
type: str |None = None
content: str |None =None
gptkey: str |None =None
type: str | None = None
content: str | None =None
gptkey: str | None = None
embedding: str = Field(default_factory=lambda: "text-embedding-ada-002")
namespace: str |None =None
webhook: str |None =None
namespace: str | None =None
webhook: str = Field(default_factory=lambda: "")

class MetadataItem(BaseModel):
id: str
source: str | None = None
type: str |None = None
type: str | None = None
embedding: str = Field(default_factory=lambda: "text-embedding-ada-002")

class ChatEntry(BaseModel):
Expand Down
1 change: 1 addition & 0 deletions tilellm/store/pinecone_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def get_pc_ids_namespace(id:str, namespace:str):

# vector_store = Pinecone.from_existing_index(const.PINECONE_INDEX, )
describe = index.describe_index_stats()

logger.debug(describe)
namespaces = describe.get("namespaces", {})
total_vectors = 1
Expand Down

0 comments on commit d882866

Please sign in to comment.