Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
23
44.3k
id
stringlengths
8
82
metadata
stringclasses
1 value
# List of targets and their descriptions .PHONY: help help: @echo "Note: The following commands will change the status of 'cloud_whisper' database.\n" @echo "Available targets:" @echo " migrate Create a new Migration File." @echo " upgrade Upgrade to a later version." @echo " dow...
Makefile
CloudWhisperCustomBot
# Dockerfile FROM python:3.11-slim-bullseye # Set the working directory WORKDIR /CloudWhisperCustomBot COPY requirements.txt . RUN apt-get update RUN apt-get install -y build-essential RUN apt-get install -y dumb-init RUN apt-get install -y curl RUN apt-get install -y lsb-release RUN apt-get install -y wget RUN apt-...
Dockerfile
CloudWhisperCustomBot
services: cloud_whisper_fe: container_name: cloud_whisper_fe build: ../cloud-whisper-frontend command: npm run build environment: REACT_APP_API_URL: https://cloudwhisper-stage.wanclouds.ai/ REACT_APP_AUTH_REDIRECT_URI: https://cloudwhisper-stage.wanclouds.ai/users/wc/callback REACT_A...
docker-compose.yml
CloudWhisperCustomBot
# A generic, single database configuration. [alembic] # path to migration scripts. # Use forward slashes (/) also on windows to provide an os agnostic path script_location = migrations # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s # Uncomment the line below if you want the ...
alembic.ini
CloudWhisperCustomBot
[tool.ruff] line-length = 120 target-version = "py311" [tool.ruff.format] indent-style = "tab" quote-style = "double" [tool.poetry] name = "CloudWhisperCustomBot" version = "0.1.0" description = "Chat with your API in Natural Language" authors = ["syedfurqan <syedfurqan@wanclouds.net>"] [build-system] requires = ["p...
pyproject.toml
CloudWhisperCustomBot
aiohttp==3.9.0 alembic==1.9.0 alembic_postgresql_enum==1.3.0 anthropic==0.34.2 asyncpg==0.27.0 bcrypt==4.1.3 celery==5.3.1 celery-singleton==0.3.1 faiss-cpu==1.7.4 fastapi==0.104.1 httpx==0.27.0 langchain==0.0.351 langchain-community==0.0.3 langchain-core==0.1.1 loguru==0.7.2 llama-index==0.10.58 llama-index-vector-sto...
requirements.txt
CloudWhisperCustomBot
# CloudWhisperCustomBot
README.md
CloudWhisperCustomBot
from contextlib import asynccontextmanager from fastapi import APIRouter, FastAPI from fastapi.middleware.cors import CORSMiddleware from loguru import logger from qdrant_client import models from qdrant_client.http.exceptions import UnexpectedResponse from app.core.config import settings, setup_app_logging, neo4j_dr...
app/main.py
CloudWhisperCustomBot
from app.api_discovery.discovery import discover_api_data from app.worker.cypher_store import qdrant from app.worker.scheduled_tasks import track_and_update_activity_status __all__ = ["discover_api_data", "qdrant", "track_and_update_activity_status"]
app/__init__.py
CloudWhisperCustomBot
from datetime import timedelta from celery import Celery from celery.signals import worker_ready from celery_singleton import clear_locks from app.core.config import settings broker = settings.redis.REDIS_URL celery_app = Celery( 'whisper-celery', broker=broker, include=[ 'app.api_discovery', ...
app/redis_scheduler.py
CloudWhisperCustomBot
import asyncio import httpx import mailchimp_transactional as MailchimpTransactional from celery_singleton import Singleton from loguru import logger from mailchimp_transactional.api_client import ApiClientError from sqlalchemy import select from app.models import Profile, ActivityTracking from app.redis_scheduler im...
app/worker/scheduled_tasks.py
CloudWhisperCustomBot
import time from llama_index.core import VectorStoreIndex, ServiceContext from llama_index.core.ingestion import IngestionPipeline from llama_index.core.schema import TextNode from llama_index.embeddings.openai import OpenAIEmbedding from llama_index.llms.openai import OpenAI from llama_index.vector_stores.qdrant impo...
app/worker/cypher_store.py
CloudWhisperCustomBot
from fastapi import APIRouter from app.web.chats import whisper_chats from app.web.clouds import whisper_clouds # from app.web.knowledge_graphs import whisper_knowledge_graphs from app.web.profiles import whisper_profiles from app.web.profiles import router from app.web.websockets import websockets_chats from app.web....
app/web/__init__.py
CloudWhisperCustomBot
from typing import Optional, Dict from pydantic import BaseModel from enum import Enum class UpdateAppearanceRequest(BaseModel): appearance: Optional[Dict] = None class OnboardingStatus(str, Enum): app_tour = "app_tour" action_tour = "action_tour" onboarded = "onboarded" class UpdateOnboardingStat...
app/web/profiles/schemas.py
CloudWhisperCustomBot
from .api import whisper_profiles, router __all__ = ["whisper_profiles", "router"]
app/web/profiles/__init__.py
CloudWhisperCustomBot
from http import HTTPStatus import httpx from loguru import logger from fastapi import APIRouter, Depends, HTTPException from fastapi.responses import JSONResponse from sqlalchemy import select from app import models from app.api_discovery.utils import update_profile_with_vpcplus_api_key, decrypt_api_key from app.web...
app/web/profiles/api.py
CloudWhisperCustomBot
CREATED_AT_FORMAT_WITH_MILLI_SECONDS = '%Y-%m-%dT%H:%M:%S.%fZ'
app/web/common/consts.py
CloudWhisperCustomBot
ROUTE_TEMPLATE = """You are a team member of the 'Cloud Whisperer' project by Wanclouds, an expert Cloud Support Engineer specializing in cloud backups, disaster recovery, and migrations. Your expertise covers major public clouds (IBM Cloud, AWS, Google Cloud, Microsoft Azure) and Wanclouds' offerings. You assist poten...
app/web/common/templates.py
CloudWhisperCustomBot
import aiohttp import asyncio import httpx import json from fastapi import HTTPException from loguru import logger from sqlalchemy import select, update from sqlalchemy.orm import selectinload from app.api_discovery.utils import update_profile_with_vpcplus_api_key from app.core.config import settings from app.web.com...
app/web/common/utils.py
CloudWhisperCustomBot
from types import AsyncGeneratorType import aiohttp import types import asyncio import httpx import json import re from datetime import datetime from fastapi import HTTPException from fastapi.security import HTTPAuthorizationCredentials from loguru import logger from sqlalchemy import asc from sqlalchemy.future import...
app/web/common/chats_websockets_utils.py
CloudWhisperCustomBot
import asyncio from typing import AsyncGenerator from contextlib import asynccontextmanager from loguru import logger from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.orm import sessionmaker from app.core.config import settings AsyncSessionLocal = sessionmaker( bind=create_as...
app/web/common/db_deps.py
CloudWhisperCustomBot
import httpx from datetime import datetime, timezone from fastapi import Depends, Header, HTTPException, WebSocketException from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from httpx import Response from loguru import logger from app.api_discovery.utils import update_profile_with_vpcplus_api_key...
app/web/common/deps.py
CloudWhisperCustomBot
{ "Create IBM VPC backup": { "v1/ibm/clouds": { "GET": { "fields": [ "id", "name" ] } }, "v1/ibm/geography/regions": { "GET": { "fields": [ "id", "name", "display_name" ] } }, "v1/ibm/vpcs": {...
app/web/common/api_path_to_fields.json
CloudWhisperCustomBot
API_KEY_MESSAGE ="""Cloud Whisper requires a VPC+ API key to discover data and perform actions. Please follow these steps to create your API key:\n 1. Create your VPC+ API Key: \n \t \n a. Click on User name in the bottom left corner and select Settings \n \t \n b. Navigate to the "API Key" section \n \t \n c....
app/web/common/cloud_setup_instruction_messages.py
CloudWhisperCustomBot
get_vpc_backups_query = """ MATCH (v:VPC) OPTIONAL MATCH (b:VPCBackup {name: v.name}) WITH v, b WHERE b IS NULL AND v.cloud_id = '{cloud_id}' RETURN v.cloud_id, v.name """ get_iks_backups_query = """ MATCH (v:KubernetesCluster) OPTIONAL MATCH (b:IKSBackupDetails {name: v.name}) WITH v, b WHERE b IS NULL AND v.cloud_id...
app/web/activity_tracking/neo4j_query.py
CloudWhisperCustomBot
from .api import activity_tracking_n_recommendations __all__ = ["activity_tracking_n_recommendations"]
app/web/activity_tracking/__init__.py
CloudWhisperCustomBot
from math import ceil from typing import Annotated from fastapi import APIRouter, Depends, HTTPException, Query from loguru import logger from sqlalchemy import select from pydantic import conint from sqlalchemy.orm import undefer from sqlalchemy import desc, func from app import models from app.core.config import se...
app/web/activity_tracking/api.py
CloudWhisperCustomBot
import datetime import typing as t import uuid from enum import Enum from pydantic import BaseModel, Field class MessageTypeEnum(str, Enum): Human = 'Human' Assistant = 'Assistant' class ChatTypeEnum(str, Enum): QnA = 'QnA' Action = 'Action' class MessageType(BaseModel): type: MessageTypeEnum...
app/web/chats/schemas.py
CloudWhisperCustomBot
from .api import whisper_chats __all__ = ["whisper_chats"]
app/web/chats/__init__.py
CloudWhisperCustomBot
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4