This demo showcases how to use Reka Research to build intelligent apps that can search the web, structure responses, and support reasoning. It’s designed to help developers learn how to integrate and use Reka Research and its advanced features to discover relevant tech events.
Requirement:
- Have .NET 9 installed or Docker or CodeSpace
If you don't have .NET install on you computer use the devContainer with Docker or CodeSpace to create your workspace.
- Go to the Reka Platform dashboard
- Open the API Keys section on the left
- Create a new key and copy it to your environment
- Add the key into appsettings.json) (or appsettings.Development.json).
Voilà! Your are all set!
-
Clone the repository:
git clone https://github.com/reka-ai/api-examples-dotnet.git
-
Navigate to the project folder:
cd api-examples-dotnet/event-finder -
Run the project:
dotnet run
Once the application is running:
- search for different topics (e.g., AI, .NET)
- Try to change the location (e.g., New York, Berlin), or only keep the country
- Only allow spefici domains (e.g., techcrunch.com)
For each research have a look to the reasoning steps and the final structured results.
Open the project in your favorite IDE/ editor and you can look at Services/RekaResearchService.cs and change different parameters to see how it works.
Here is a diagram to illustrate where the information is coming from and going to during for initiate a Research.
%%{ init : { "look": "handDrawn", "flowchart" : { "curve" : "linear" }}}%%
flowchart LR
A[Events Finder] --> B[browser]
B --> |lat, lng| A
A --> |lat, lng| C[GetCityFromCoordinates https://nominatim.openstreetmap.org]
C --> |city, area| A
A -->|mood, user location| D[Reka Research https://api.reka.ai/v1]
D --> |Eevents, reasoning steps| A
And here is a sequence diagram to illustrate the flow of information:
sequenceDiagram
autonumber
Events Finder ->> Browser : Get Coordinates
Browser->> Events Finder: lat, lng
Events Finder ->> nominatim.openstreetmap.org: Get City From Coordinates
nominatim.openstreetmap.org ->> Events Finder: city, area
Events Finder ->> Reka Research (api.reka.ai/v1) :topic, user location, domains
Reka Research (api.reka.ai/v1) ->> Events Finder: Events, reasoning steps
