GithubHelp home page GithubHelp logo

lnshuti / gre-ai-buddy Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 155.28 MB

AI Agent to Manage Preparing for the GRE

License: MIT License

Swift 3.76% Python 5.32% JavaScript 0.38% CSS 1.68% Jupyter Notebook 7.20% TypeScript 64.51% HTML 1.39% SCSS 1.84% Kotlin 0.04% Objective-C 0.01% CMake 5.82% C++ 7.08% C 0.44% Dart 0.44% Shell 0.07%
agent ai ios

gre-ai-buddy's People

Contributors

lnshuti avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

jck33

gre-ai-buddy's Issues

Convert this streamlit application into a flask application

import streamlit as st
import weaviate
from llama_index import download_loader

WeaviateReader = download_loader('WeaviateReader')

Define the user inputs for connection details

st.sidebar.title('Connect to Your GRE Study Assistant')
username = st.sidebar.text_input('Username', '')
password = st.sidebar.text_input('Password', '', type='password')
cluster_id = st.sidebar.text_input('Cluster ID', '')
class_name = st.sidebar.text_input('Class Name', '')
property1 = st.sidebar.text_input('Property 1', '')
property2 = st.sidebar.text_input('Property 2', '')

Initialize WeaviateReader with the given credentials

resource_owner_config = weaviate.AuthClientPassword(
username = username,
password = password,
)

reader = WeaviateReader(f"https://{cluster_id}.semi.network/", auth_client_secret=resource_owner_config)

Load data using class_name and properties

if st.sidebar.button('Load data'):
documents = reader.load_data(
class_name=class_name,
properties=[property1, property2],
separate_documents=True
)

Display documents

st.write(documents)

Define a text area for a custom GraphQL query

query = st.sidebar.text_area('Enter your GraphQL query', """
{
Get {
<class_name> {


...
}
}
}
""")

Execute GraphQL query

if st.sidebar.button('Execute query'):
documents = reader.load_data(graphql_query=query, separate_documents=True)

Display documents

st.write(documents)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.