Skip to content

Commit

Permalink
The rest of the owl
Browse files Browse the repository at this point in the history
  • Loading branch information
seldo committed Jan 24, 2024
1 parent ebe97fc commit 8ad64bf
Show file tree
Hide file tree
Showing 11 changed files with 449 additions and 11 deletions.
4 changes: 0 additions & 4 deletions 1_flask.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# read .env files
import dotenv, os
dotenv.load_dotenv()

# start a flask app
from flask import Flask, request, jsonify

Expand Down
1 change: 0 additions & 1 deletion 2_join_and_reply.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# Bring in deps including Slack Bolt framework
from slack_bolt import App
from slack_sdk import WebClient
from flask import Flask, request, jsonify
from slack_bolt.adapter.flask import SlackRequestHandler

Expand Down
1 change: 0 additions & 1 deletion 3_reply_to_mentions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# Bring in deps including Slack Bolt framework
from slack_bolt import App
from slack_sdk import WebClient
from flask import Flask, request, jsonify
from slack_bolt.adapter.flask import SlackRequestHandler

Expand Down
1 change: 0 additions & 1 deletion 5_rag_in_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# Bring in deps including Slack Bolt framework
from slack_bolt import App
from slack_sdk import WebClient
from flask import Flask, request, jsonify
from slack_bolt.adapter.flask import SlackRequestHandler

Expand Down
4 changes: 2 additions & 2 deletions 6_qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

# bring in llamaindex deps
import qdrant_client
from llama_index import VectorStoreIndex, Document, StorageContext, ServiceContext
from llama_index import VectorStoreIndex, Document, StorageContext
from llama_index.vector_stores.qdrant import QdrantVectorStore

# initialize qdrant client and a vector store that uses it
client = qdrant_client.QdrantClient(
path="./qdrant_data"
)
vector_store = QdrantVectorStore(client=client, collection_name="tweets")
vector_store = QdrantVectorStore(client=client, collection_name="slack_messages")
storage_context = StorageContext.from_defaults(vector_store=vector_store)

index = VectorStoreIndex([],storage_context=storage_context)
Expand Down
2 changes: 1 addition & 1 deletion 7_recency.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
client = qdrant_client.QdrantClient(
path="./qdrant_data"
)
vector_store = QdrantVectorStore(client=client, collection_name="tweets")
vector_store = QdrantVectorStore(client=client, collection_name="slack_messages")
storage_context = StorageContext.from_defaults(vector_store=vector_store)

index = VectorStoreIndex([],storage_context=storage_context)
Expand Down
2 changes: 1 addition & 1 deletion 8_rest_of_the_owl.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
client = qdrant_client.QdrantClient(
path="./qdrant_data"
)
vector_store = QdrantVectorStore(client=client, collection_name="tweets")
vector_store = QdrantVectorStore(client=client, collection_name="slack_messages")
storage_context = StorageContext.from_defaults(vector_store=vector_store)

index = VectorStoreIndex([],storage_context=storage_context)
Expand Down
445 changes: 445 additions & 0 deletions README.md

Large diffs are not rendered by default.

Binary file added docs/3_1_web_service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/3_3_deploy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/HowToDrawOwl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ad64bf

Please sign in to comment.